{"id":"USN-9297-1","summary":"golang-github-gorilla-csrf vulnerability","details":"It was discovered that Gorilla CSRF did not properly validate the Origin\nand Referer headers of cross-origin requests. A remote attacker who was\nable to perform cross-site scripting attacks on a site sharing the same\ntop-level domain could possibly use this issue to perform cross-site\nrequest forgery attacks. After this update, Gorilla CSRF treats all\nrequests as HTTPS requests unless the application marks them as plaintext\nHTTP requests.","modified":"2026-12-02T02:28:41.164104887Z","published":"2026-12-01T12:48:46Z","related":["UBUNTU-CVE-2025-24358"],"upstream":["CVE-2025-24358","UBUNTU-CVE-2025-24358"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9297-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-24358"}],"affected":[{"package":{"name":"golang-github-gorilla-csrf","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.2-2ubuntu0.20.04.1~esm1"}]}],"versions":["1.6.2-1","1.6.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-gorilla-csrf-dev","binary_version":"1.6.2-2ubuntu0.20.04.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"id":"CVE-2025-24358","severity":[{"source":"CNA","type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"},{"score":"medium","source":"SELF","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"}},{"package":{"name":"golang-github-gorilla-csrf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.2-2+deb11u1build0.22.04.1"}]}],"versions":["1.6.2-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-github-gorilla-csrf-dev","binary_version":"1.6.2-2+deb11u1build0.22.04.1"}]},"database_specific":{"cves_map":{"cves":[{"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","source":"CNA"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2025-24358"}],"ecosystem":"Ubuntu:22.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"}},{"package":{"name":"golang-github-gorilla-csrf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.2-1ubuntu0.24.04.1"}]}],"versions":["1.7.1-1","1.7.2-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-github-gorilla-csrf-dev","binary_version":"1.7.2-1ubuntu0.24.04.1"}]},"database_specific":{"cves_map":{"cves":[{"severity":[{"source":"CNA","type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2025-24358"}],"ecosystem":"Ubuntu:24.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"}}],"schema_version":"1.9.2"}