{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21496","published":"2024-02-17T05:15:09.603000Z","last_modified":"2026-06-17T07:09:36.970000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"report@snyk.io","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:authcrunch:caddy-security:-:*:*:*:*:*:*:*","part":"a","vendor":"authcrunch","product":"caddy-security"}],"cpes_truncated":false,"vendors":["authcrunch"],"products":["authcrunch/caddy-security"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00776,"percentile":0.52297,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-ff72-ff42-c3gw","ecosystem":"Go","name":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","ranges":[{"introduced":"0","last_affected":"1.1.23"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2024-2559","ecosystem":"Go","name":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","ranges":[{"introduced":"0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2024-21496/","html_en":"/en/cve/CVE-2024-21496/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21496","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21496"},"untrusted":{"vendor_name":"Authcrunch","product_name":"Caddy-security","desc_en":"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.","affected":[],"references":[{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/greenpau/caddy-security/issues/267","tags":["Exploit","Issue Tracking"]},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860","tags":["Third Party Advisory"]}]}}