USN-9297-1

Source
https://ubuntu.com/security/notices/USN-9297-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-9297-1
Upstream
Related
Published
2026-12-01T12:48:46Z
Modified
2026-12-02T02:28:41Z
Summary
golang-github-gorilla-csrf vulnerability
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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.2-2ubuntu0.20.04.1~esm1

Affected versions

1.*
1.6.2-1
1.6.2-2

Ecosystem specific

{
    "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"
        }
    ]
}

Database specific

cves_map
{
    "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"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"

Ubuntu:22.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.2-2+deb11u1build0.22.04.1

Affected versions

1.*
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":  [
        {
            "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"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"

Ubuntu:24.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.7.2-1ubuntu0.24.04.1

Affected versions

1.*
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":  [
        {
            "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"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9297-1.json"