p PatchFirst

CVE-2025-47909

CVE-2025-47909 · Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf

CVSS 7.3 · Alta · EPSS 0,2%

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

Comprueba la versión instalada:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-gorilla-csrf"'

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

Hosts listed in TrustedOrigins implicitly allow requests from the corresponding HTTP origins, allowing network MitMs to perform CSRF attacks. After the CVE-2025-24358 fix, a network attacker that places a form at http://example.com can't get it to submit to https://example.com because the Origin header is checked with sameOrigin against a synthetic URL. However, if a host is added to TrustedOrigins, both its HTTP and HTTPS origins will be allowed, because the schema of the synthetic URL is ignored and only the host is checked. For example, if an application is hosted on https://example.com and adds example.net to TrustedOrigins, a network attacker can serve a form at http://example.net to perform the attack. Applications should migrate to net/http.CrossOriginProtection, introduced in Go 1.25. If that is not an option, a backport is available as a module at filippo.io/csrf, and a drop-in replacement for the github.com/gorilla/csrf API is available at filippo.io/csrf/gorilla.

Publicación
Actualización

Pila tecnológica: system

Productos y versiones afectados

  • github.com/gorilla/csrf

    Versiones
    • ≥ 0, < 1.7.3: No afectada (semver)

    Sin corrección publicada

  • golang-github-gorilla-csrf Debian 12

    Versiones
    • 1.7.1-1
    • 1.7.2+ds1-1
    • 1.7.2+ds1-2
    • 1.7.2+ds1-3
    • 1.7.2-1
    • 1.7.2-1~bpo12+1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Debian 13

    Versiones
    • 1.7.2+ds1-2
    • 1.7.2+ds1-3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Debian 14

    Versiones
    • 1.7.2+ds1-2
    • 1.7.2+ds1-3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 20.04 LTS

    Versiones
    • 1.6.2-1
    • 1.6.2-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 22.04 LTS

    Versiones
    • 1.6.2-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 24.04 LTS

    Versiones
    • 1.7.1-1
    • 1.7.2-1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 25.10

    Versiones
    • 1.7.2+ds1-1
    • 1.7.2+ds1-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 26.10

    Versiones
    • 1.7.2+ds1-2
    • 1.7.2+ds1-3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-github-gorilla-csrf Ubuntu 26.04 LTS

    Versiones
    • 1.7.2+ds1-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

Fuentes originales

Comprueba tu servidor →