VULNERABILITY INTELLIGENCE
CVE-2024-21496
CVSS score6.1 MEDIUM
EPSS probability0.58%
CISA KEVNot currently listed
Published2024-02-17
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
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.
Weakness classification
- report@snyk.io: CWE-79
- 134c704f-9b21-4f2e-91b3-4a467353bcc0: CWE-79
Primary references
- report@snyk.io — Exploit, Third Party Advisory
- report@snyk.io — Exploit, Issue Tracking
- report@snyk.io — Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Issue Tracking
- af854a3a-2127-422b-91ae-364da2661108 — Third Party Advisory