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 (updated October 31, 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.0

Fixed versions

  • 1.2.0

Solution

Upgrade to version 1.2.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

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 Sun, 08 Nov 2026 00:15:43 +0000.