Security mailing lists by PureSourceCode

CVE-2024-21496

MEDIUM 6.1CVSS 3.1

Cross-site Scripting in github.com/greenpau/caddy-security

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.

Published
17 Feb 2024
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Analyzed
Weakness
CWE-79
Also known as
GHSA-ff72-ff42-c3gwGO-2024-2559
Sources
NVDJSONOSV GHSA-ff72-ff42-c3gwJSONOSV GO-2024-2559JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD authcrunch caddy-security
cpe:2.3:a:authcrunch:caddy-security:-:*:*:*:*:*:*:*
(no version)
OSV Go github.com/greenpau/caddy-security <= 1.1.23
OSV Go github.com/greenpau/caddy-security all versions

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 17 Feb 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jun 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.