You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(csrf): Replace gorilla/csrf with net/http.CrossOriginProtection
gorilla/csrf is pinned at v1.7.2 for CVE-2025-24358 and cannot move. Go 1.25's net/http.CrossOriginProtection covers the same ground, so drop the dependency and judge cross-origin writes with the standard library. No configured endpoint takes part: each request is judged on the origin the browser actually used, which is what lets one Harbor answer on several ingresses.
The fallback that runs when a browser sends no Sec-Fetch-Site (plain HTTP) compares Origin against Host. A proxy that rewrites Host drops the port — the bundled nginx sets Host to $host — so a legitimate same-origin write looks cross-origin. Tolerate a port-only difference on an otherwise matching host; a differing host still fails, keeping the cross-site and CVE-2025-24358 rejections intact.
Signed-off-by: Prasanth Baskar <prasanth@8gears.com>
Copy file name to clipboardExpand all lines: .github/renovate.json
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -134,13 +134,6 @@
134
134
"docker"
135
135
]
136
136
},
137
-
{
138
-
"description": "gorilla/csrf is deliberately pinned to v1.7.2 (goharbor/harbor#22010) — block the v1.7.3+ updates Renovate keeps proposing, including via vulnerability alerts",
139
-
"matchPackageNames": [
140
-
"github.com/gorilla/csrf"
141
-
],
142
-
"allowedVersions": "<= 1.7.2"
143
-
},
144
137
{
145
138
"description": "Bare deps: commit type everywhere — overrides :semanticPrefixFixDepsChoreOthers from config:recommended, which would otherwise emit fix(deps)/chore(deps)",
0 commit comments