data/reports: add GO-2025-3683
- data/reports/GO-2025-3683.yaml
Updates golang/vulndb#3683
Change-Id: Ie9c4023cd34f5245e82fcd38085af94525dfb4c9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/673315
Auto-Submit: Neal Patel <nealpatel@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
diff --git a/data/osv/GO-2025-3683.json b/data/osv/GO-2025-3683.json
new file mode 100644
index 0000000..d674e8b
--- /dev/null
+++ b/data/osv/GO-2025-3683.json
@@ -0,0 +1,75 @@
+{
+ "schema_version": "1.3.1",
+ "id": "GO-2025-3683",
+ "modified": "0001-01-01T00:00:00Z",
+ "published": "0001-01-01T00:00:00Z",
+ "aliases": [
+ "CVE-2025-46721",
+ "GHSA-w9hf-35q4-vcjw"
+ ],
+ "summary": "nosurf vulnerable to CSRF due to non-functional same-origin request checks in github.com/justinas/nosurf",
+ "details": "nosurf vulnerable to CSRF due to non-functional same-origin request checks in github.com/justinas/nosurf",
+ "affected": [
+ {
+ "package": {
+ "name": "github.com/justinas/nosurf",
+ "ecosystem": "Go"
+ },
+ "ranges": [
+ {
+ "type": "SEMVER",
+ "events": [
+ {
+ "introduced": "0"
+ },
+ {
+ "fixed": "1.2.0"
+ }
+ ]
+ }
+ ],
+ "ecosystem_specific": {
+ "imports": [
+ {
+ "path": "github.com/justinas/nosurf",
+ "symbols": [
+ "CSRFHandler.ServeHTTP",
+ "New",
+ "NewPure"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "references": [
+ {
+ "type": "ADVISORY",
+ "url": "https://github.com/justinas/nosurf/security/advisories/GHSA-w9hf-35q4-vcjw"
+ },
+ {
+ "type": "ADVISORY",
+ "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-46721"
+ },
+ {
+ "type": "FIX",
+ "url": "https://github.com/justinas/nosurf/commit/ec9bb776d8e5ba9e906b6eb70428f4e7b009feee"
+ },
+ {
+ "type": "WEB",
+ "url": "https://github.com/advisories/GHSA-rq77-p4h8-4crw"
+ },
+ {
+ "type": "WEB",
+ "url": "https://github.com/justinas/nosurf-cve-2025-46721"
+ },
+ {
+ "type": "WEB",
+ "url": "https://github.com/justinas/nosurf/releases/tag/v1.2.0"
+ }
+ ],
+ "database_specific": {
+ "url": "https://pkg.go.dev/vuln/GO-2025-3683",
+ "review_status": "UNREVIEWED"
+ }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2025-3683.yaml b/data/reports/GO-2025-3683.yaml
new file mode 100644
index 0000000..ff54b5b
--- /dev/null
+++ b/data/reports/GO-2025-3683.yaml
@@ -0,0 +1,29 @@
+id: GO-2025-3683
+modules:
+ - module: github.com/justinas/nosurf
+ versions:
+ - fixed: 1.2.0
+ vulnerable_at: 1.1.1
+ packages:
+ - package: github.com/justinas/nosurf
+ symbols:
+ - New
+ - CSRFHandler.ServeHTTP
+ derived_symbols:
+ - NewPure
+summary: nosurf vulnerable to CSRF due to non-functional same-origin request checks in github.com/justinas/nosurf
+cves:
+ - CVE-2025-46721
+ghsas:
+ - GHSA-w9hf-35q4-vcjw
+references:
+ - advisory: https://github.com/justinas/nosurf/security/advisories/GHSA-w9hf-35q4-vcjw
+ - advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-46721
+ - fix: https://github.com/justinas/nosurf/commit/ec9bb776d8e5ba9e906b6eb70428f4e7b009feee
+ - web: https://github.com/advisories/GHSA-rq77-p4h8-4crw
+ - web: https://github.com/justinas/nosurf-cve-2025-46721
+ - web: https://github.com/justinas/nosurf/releases/tag/v1.2.0
+source:
+ id: GHSA-w9hf-35q4-vcjw
+ created: 2025-05-15T14:37:40.720845-04:00
+review_status: NEEDS_REVIEW