Advisory

DEBIAN-CVE-2025-24358

Also known as: CVE-2025-24358

Summary

The record has no summary.

Details

gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. Prior to 1.7.2, gorilla/csrf does not validate the Origin header against an allowlist. Its executes its validation of the Referer header for cross-origin requests only when it believes the request is being served over TLS. It determines this by inspecting the r.URL.Scheme value. However, this value is never populated for "server" requests per the Go spec, and so this check does not run in practice. This vulnerability allows an attacker who has gained XSS on a subdomain or top level domain to perform authenticated form submissions against gorilla/csrf protected targets that share the same top level domain. This vulnerability is fixed in 1.7.2.

Severity

Not rated by the source.

Dates

Published
2025-04-15 19:16 UTC
Modified
2026-09-01 20:05 UTC

Affected packages and fixes

golang-github-gorilla-csrf

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

golang-github-gorilla-csrf

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.7.2+ds1-2 (ecosystem)

Fixed versions

1.7.2+ds1-2

Fix

  • Fixed version 1.7.2+ds1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

golang-github-gorilla-csrf

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.7.2+ds1-2 (ecosystem)

Fixed versions

1.7.2+ds1-2

Fix

  • Fixed version 1.7.2+ds1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences