CVE-2024-21496

Published Feb 17, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0628 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.
Github GHSA Github GHSA GHSA-ff72-ff42-c3gw Cross-site Scripting in github.com/greenpau/caddy-security
History
Type Values Removed Values Added
First Time appeared Authcrunch
Authcrunch caddy-security
CPEs cpe:2.3:a:authcrunch:caddy-security:-:*:*:*:*:*:*:*
Vendors & Products Authcrunch
Authcrunch caddy-security
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Nov 6, 2024, 6:53 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Analyzed
Published
Feb 17, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM