Home / mailings [USN-9297-1] Gorilla CSRF vulnerability
Posted on 01 December 2026
Ubuntu Security==========================================================================Ubuntu Security Notice USN-9297-1
December 01, 2026
golang-github-gorilla-csrf vulnerability
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 24.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
Summary:
Gorilla CSRF could allow a remote attacker to perform actions as another
user.
Software Description:
- golang-github-gorilla-csrf: Cross Site Request Forgery (CSRF) prevention middleware for Go
Details:
It was discovered that Gorilla CSRF did not properly validate the Origin
and Referer headers of cross-origin requests. A remote attacker who was
able to perform cross-site scripting attacks on a site sharing the same
top-level domain could possibly use this issue to perform cross-site
request forgery attacks. After this update, Gorilla CSRF treats all
requests as HTTPS requests unless the application marks them as plaintext
HTTP requests.
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 24.04 LTS
golang-github-gorilla-csrf-dev 1.7.2-1ubuntu0.24.04.1
Ubuntu 22.04 LTS
golang-github-gorilla-csrf-dev 1.6.2-2+deb11u1build0.22.04.1
Ubuntu 20.04 LTS
golang-github-gorilla-csrf-dev 1.6.2-2ubuntu0.20.04.1~esm1
Available with Ubuntu Pro
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-9297-1
CVE-2025-24358
Package Information:
https://launchpad.net/ubuntu/+source/golang-github-gorilla-csrf/1.7.2-1ubuntu0.24.04.1
https://launchpad.net/ubuntu/+source/golang-github-gorilla-csrf/1.6.2-2+deb11u1build0.22.04.1
--===============0374854826492331027==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
