fix: close SSRF/rebinding, IDOR, and stale-session authz gaps found in audit

Bump to 0.5.1. Fixes: unfollowed-redirect SSRF + DNS-rebinding in AI
url-import and webhook dispatch (new safeFetch with IP-pinned undici
dispatcher); cross-user photo deletion via unvalidated recipe/review
storage keys; comment-moderation and tier-quota checks trusting a
stale cached session role/tier instead of the DB.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-12 19:05:20 +02:00
parent 4f36ce24b2
commit 5a9e306357
17 changed files with 307 additions and 54 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@epicure/web",
"version": "0.5.0",
"version": "0.5.1",
"private": true,
"scripts": {
"dev": "next dev",
@@ -15,7 +15,7 @@
"dependencies": {
"@ai-sdk/anthropic": "^3.0.86",
"@ai-sdk/openai": "^3.0.74",
"@asteasolutions/zod-to-openapi": "^8.5.0",
"@asteasolutions/zod-to-openapi": "^7.3.4",
"@aws-sdk/client-s3": "^3.1075.0",
"@aws-sdk/s3-request-presigner": "^3.1075.0",
"@base-ui/react": "^1.6.0",
@@ -46,6 +46,7 @@
"sonner": "^2.0.7",
"tailwind-merge": "^3.6.0",
"tw-animate-css": "^1.4.0",
"undici": "^7.28.0",
"web-push": "^3.6.7",
"zod": "^3.25.76"
},