CVE-2024-21496 json
Cross-site Scripting in github.com/greenpau/caddy-security
published 2024-02-17 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-0628 , GHSA-ff72-ff42-c3gw , GO-2024-2559
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
All versions of the package github.com/greenpau/caddy-security are vulnerable to Cross-site Scripting (XSS) via the Referer header, due to improper input sanitization. Although the Referer header is sanitized by escaping some characters that can allow XSS (e.g., [&], [<], [>], ["], [']), it does not account for the attack based on the JavaScript URL scheme (e.g., javascript:alert(document.domain)// payload). Exploiting this vulnerability may not be trivial, but it could lead to the execution of malicious scripts in the context of the target user’s browser, compromising user sessions.
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/greenpau/caddy-security/issues/267 referenced PoC, tagged "exploit" by a source, unverified
- blog.trailofbits.com https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/greenpau/caddy-security | <=1.1.23 all versions |
no fix listed |
Affected products
- n/a github.com/greenpau/caddy-security
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/greenpau/caddy-security/issues/267
web, exploit, issue-tracking, report
-
blog.trailofbits.com
/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/
exploit, third-party-advisory
-
security.snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-21496
advisory
-
blog.trailofbits.com
/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy
web
-
github.com
/advisories/GHSA-ff72-ff42-c3gw
advisory
Sources
- CVE List CVE-2024-21496
- GitHub Advisory GHSA-ff72-ff42-c3gw
- NVD CVE-2024-21496
- OSV GO-2024-2559
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.