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.
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
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 23 Dec 2025 20:15:00 +0000

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

Wed, 06 Nov 2024 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2024-11-06T18:53:52.043Z

Reserved: 2023-12-22T12:33:20.118Z

Link: CVE-2024-21496

cve-icon Vulnrichment

Updated: 2024-08-01T22:20:40.901Z

cve-icon NVD

Status : Analyzed

Published: 2024-02-17T05:15:09.603

Modified: 2025-12-23T20:09:22.520

Link: CVE-2024-21496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses