CVE-2025-47909
Full vulnerability record from the local CVENow database.
Description
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.
View original CVE JSON
{
"id": "CVE-2025-47909",
"sourceIdentifier": "[email protected]",
"published": "2025-08-29T16:15:35.990",
"lastModified": "2026-10-19T17:10:00.173",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Los hosts listados en TrustedOrigins permiten implícitamente solicitudes de los orígenes HTTP correspondientes, permitiendo a los MitM de red realizar ataques CSRF. Después de la corrección de CVE-2025-24358, un atacante de red que coloca un formulario en http://example.com no puede lograr que se envíe a https://example.com porque el encabezado Origin se verifica con sameOrigin contra una URL sintética. Sin embargo, si se añade un host a TrustedOrigins, se permitirán tanto sus orígenes HTTP como HTTPS, porque el esquema de la URL sintética se ignora y solo se verifica el host. Por ejemplo, si una aplicación está alojada en https://example.com y añade example.net a TrustedOrigins, un atacante de red puede servir un formulario en http://example.net para realizar el ataque. Las aplicaciones deberían migrar a net/http.CrossOriginProtection, introducido en Go 1.25. Si esa no es una opción, un backport está disponible como módulo en filippo.io/csrf, y un reemplazo directo para la API de github.com/gorilla/csrf está disponible en filippo.io/csrf/gorilla."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "github.com/gorilla/csrf",
"product": "github.com/gorilla/csrf",
"defaultStatus": "affected",
"collectionURL": "https://pkg.go.dev",
"packageName": "github.com/gorilla/csrf",
"programRoutines": [
{
"name": "TrustedOrigins"
}
],
"versions": [
{
"version": "0",
"lessThan": "1.7.3",
"versionType": "semver",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"baseScore": 7.3,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 3.9,
"impactScore": 3.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-08-29T18:22:18.472640Z",
"id": "CVE-2025-47909",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-346"
}
]
}
],
"references": [
{
"url": "https://github.com/golang/vulndb/issues/3884",
"source": "[email protected]"
},
{
"url": "https://pkg.go.dev/vuln/GO-2025-3884",
"source": "[email protected]"
}
]
}