CVE-2026-78145: CTFd __init__.py _is_safe_url redirect
A vulnerability has been found in CTFd up to 3.8.4. The affected element is the function issafeurl of the file CTFd/utils/validators/init.py. Such manipulation of the argument Next leads to open redirect. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The name of the patch is 5d8515842fd1ab2c3a9f2dde9ffca907aa334ea9. Upgrading the affected component is recommended.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
CTFdto a version that resolves this vulnerability.Patch 5d8515842fd1ab2c3a9f2dde9ffca907aa334ea9
Event History
Frequently Asked Questions
Which CTFd deployments are affected?
CTFd versions up to and including 3.8.4 are affected. The issue is in the _is_safe_url function in CTFd/utils/validators/__init__.py.
What does an attacker need to exploit this issue?
The attack can be launched remotely and does not require privileges. Exploitation requires a user to interact with a manipulated Next argument, resulting in a redirect to an attacker-controlled destination.
Is public exploit information available?
Yes. The exploit has been publicly disclosed and may be used.
What should be done to remediate the issue?
Upgrade the affected CTFd component to a version containing patch 5d8515842fd1ab2c3a9f2dde9ffca907aa334ea9.