Skip to main content
CVE-2024-21497VulnerabilityPublished Updated

CVE-2024-21497: github.com/greenpau/caddy-security · Open Redirect

Affects github.com/greenpau/caddy-securitySource CVE Database V5

0

Not known to be exploited · CVSS 5.4 Medium.

Data as of 26 Oct 2026, 07:57 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/greenpau/caddy-securitypkg:golang/github.com/greenpau/caddy-securityOther threatsAffected
  • =0
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.

References

Community reviews

Loading reviews…