Live threats

All CVEs / Authcrunch

CVE-2024-21496Authcrunch Caddy-security

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Feb 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Caddy-security.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/greenpau/caddy-security ≤ 1.1.23 no fixed version —
Go github.com/greenpau/caddy-security all no fixed version —

Per OSV / GitHub Advisories (GHSA-ff72-ff42-c3gw, GO-2024-2559). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
authcrunchcaddy-securityall

Official sources

References

Links published by the sources. Open them with care.