Cross-site scripting in github.com/greenpau/caddy-security
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/greenpau/caddy-security | all versions | — | No fix listed | CNA |
| — | github.com/greenpau/caddy-security (Go) | up to 1.1.23 | — | No fix listed | GHSA-ff72-ff42-c3gw |
- github.com/greenpau/caddy-security Vendor— Affected all versions Fixed in — No fix listed CNA
- github.com/greenpau/caddy-security (Go) Vendor— Affected up to 1.1.23 Fixed in — No fix listed GHSA-ff72-ff42-c3gw
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:authcrunch:caddy-security:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Authcrunch |
- cpe:2.3:a:authcrunch:caddy-security:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Authcrunch
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21496
- 2026-10-03 Alias added: GHSA-ff72-ff42-c3gw
References
More Authcrunch Caddy-security vulnerabilities
- TI-2023-28778 The caddy-security plugin 1.1.20 for Caddy allows reflected XSS via a GET request to a… CVSS 3.1MEDIUM 6.1
- TI-2024-14249 Insufficient session expiration in github.com/greenpau/caddy-security CVSS 3.1HIGH 8.1
- TI-2024-14255 Server-side request forgery in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 5.3
- TI-2024-14257 Missing brute-force protection in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-21496 · CVE Program
- CVE-2024-21496 · NVD
- FIRST EPSS
- GHSA-ff72-ff42-c3gw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences