Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/justinas/nosurf
  4. ›
  5. CVE-2025-46721

CVE-2025-46721: nosurf vulnerable to CSRF due to non-functional same-origin request checks

May 14, 2025

This vulnerability 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 Cross-Site Request Forgery checks and issue requests on user’s behalf.

References

  • github.com/advisories/GHSA-rq77-p4h8-4crw
  • github.com/advisories/GHSA-w9hf-35q4-vcjw
  • github.com/justinas/nosurf
  • github.com/justinas/nosurf-cve-2025-46721
  • github.com/justinas/nosurf/commit/ec9bb776d8e5ba9e906b6eb70428f4e7b009feee
  • github.com/justinas/nosurf/releases/tag/v1.2.0
  • github.com/justinas/nosurf/security/advisories/GHSA-w9hf-35q4-vcjw
  • nvd.nist.gov/vuln/detail/CVE-2025-46721

Code Behaviors & Features

Detect and mitigate CVE-2025-46721 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.0

Fixed versions

  • 1.2.0

Solution

Upgrade to version 1.2.0 or above.

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/justinas/nosurf/CVE-2025-46721.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:19 +0000.