Vulnerabilities

Vulnerability · CVE-2025-46721

nosurf is cross-site request forgery (CSRF) protection middleware for Go.

Published May 13, 2025 · catalog updated May 13, 2025 · nosurf is cross-site request

Check if you run it

No confirmed exploitation is on record for CVE-2025-46721. EPSS is 0.24%. Act only if a listed version of nosurf is cross-site request is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (nosurf is cross-site request).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium6.0
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.24%
Remediation
Version ranges on file
Affected products
vendor justinas nosurf < 1.2.0

nosurf is cross-site request forgery (CSRF) protection middleware for Go. A vulnerability in versions prior to 1.2.0 allows an attacker who controls content on the target site, or on a subdomain of the target site (either via XSS, or otherwise) to bypass CSRF checks and issue requests on user's behalf. Due to misuse of the Go library, nosurf categorizes all incoming requests as plain-text HTTP requests, in which case the header is not checked to have the same origin as the target webpage. If the attacker has control over HTML contents on either the target website (e.g. ), or on a website hoste

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor justinas nosurf < 1.2.0< 1.2.0

How to fix CVE-2025-46721

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2025-46721. EPSS is 0.24%. Act only if a listed version of nosurf is cross-site request is installed.

Which versions are affected?

Compare what you have installed with justinas nosurf < 1.2.0 < 1.2.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.24%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. May 13, 2025 · EUVD

    Detected

    nosurf is cross-site request forgery (CSRF) protection middleware for Go. A vulnerability in versions prior to 1.2.0 allows an attacker who controls content on the target site, or on a subdomain of the target site (either via XSS, or otherwise) to bypass CSRF checks and issue requests on user's behalf. Due to misuse of the Go library, nosurf categorizes all incoming requests as plain-text HTTP req

  2. May 13, 2025 · EUVD

    Updated

    nosurf is cross-site request forgery (CSRF) protection middleware for Go. A vulnerability in versions prior to 1.2.0 allows an attacker who controls content on the target site, or on a subdomain of the target site (either via XSS, or otherwise) to bypass CSRF checks and issue requests on user's behalf. Due to misuse of the Go library, nosurf categorizes all incoming requests as plain-text HTTP req

Sources

  • CVE.orgVulnerability recordCVE-2025-46721

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2025-46721

    30-day exploitation probability 0.2%

    first.org
  • EUVDVulnerability recordEUVD-2025-14655

    nosurf is cross-site request forgery (CSRF) protection middleware for Go. A vulnerability in versions prior to 1.2.0 allows an attacker who controls content on the target site, or on a subdomain of the target site (either via XSS, or otherwise) to bypass CSRF checks and issue req

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.