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.
{
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "golang-github-gorilla-csrf-dev",
"binary_version": "1.6.2-2ubuntu0.20.04.1~esm1"
}
]
}
{
"cves": [
{
"id": "CVE-2025-24358",
"severity": [
{
"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",
"type": "CVSS_V4"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:Pro:20.04:LTS"
}
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"
{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "golang-github-gorilla-csrf-dev",
"binary_version": "1.6.2-2+deb11u1build0.22.04.1"
}
]
}
{
"cves": [
{
"id": "CVE-2025-24358",
"severity": [
{
"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",
"type": "CVSS_V4"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:22.04:LTS"
}
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"
{
"availability": "No subscription required",
"binaries": [
{
"binary_name": "golang-github-gorilla-csrf-dev",
"binary_version": "1.7.2-1ubuntu0.24.04.1"
}
]
}
{
"cves": [
{
"id": "CVE-2025-24358",
"severity": [
{
"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",
"type": "CVSS_V4"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:24.04:LTS"
}
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"