CVE-2024-21497: github.com/greenpau/caddy-security · Open Redirect
Affects github.com/greenpau/caddy-securitySource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 17 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/greenpau/caddy-securitypkg:golang/github.com/greenpau/caddy-securityOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-21497, organizations should immediately update the github.com/greenpau/caddy-security package to a version where the vulnerability is patched once available. In the interim, developers should implement strict validation and sanitization of the redirect_url parameter to ensure it only allows redirection to trusted internal URLs or domains. Employing a whitelist approach for redirect destinations is recommended. Additionally, consider implementing user warnings or confirmation prompts before redirection occurs to untrusted sites. Security teams should audit web applications for usage of this package and review all redirect mechanisms for similar vulnerabilities. Monitoring user reports and logs for suspicious redirect activity can help detect exploitation attempts. Educating users about the risks of clicking unexpected links and promoting cautious behavior can reduce the success of phishing attempts leveraging this vulnerability. Finally, integrating Content Security Policy (CSP) headers and other browser security features can help mitigate the impact of malicious redirects.
Description
Versions of the package github.com/greenpau/caddy-security are vulnerable to Open Redirect via the redirect_url parameter. An attacker could perform a phishing attack and trick users into visiting a malicious website by crafting a convincing URL with this parameter. To exploit this vulnerability, the user must take an action, such as clicking on a portal button or using the browser’s back button, to trigger the redirection.