{"id":"CVE-2024-21496","published":"2024-02-17T05:00:02Z","modified":"2024-11-06T18:53:52Z","title":"All versions of the package github.com/greenpau/caddy-security are vulnerable to Cross-site Scripting (XSS) via the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00776,"percentile":0.52232,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860","tags":[]},{"url":"https://github.com/greenpau/caddy-security/issues/267","tags":[]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.45},{"name":"CVSS severity","points":4.27}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/greenpau/caddy-security","versions":["all versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-20T15:37:01.746124Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/greenpau/caddy-security","vulnerableRanges":["<=1.1.23","all versions"],"patched":[],"from":["GHSA-ff72-ff42-c3gw","GO-2024-2559"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0628","exploited":false,"provenance":"source"}}