diff --git a/backend/server.js b/backend/server.js index 10d72ac8..bc1427fc 100644 --- a/backend/server.js +++ b/backend/server.js @@ -585,6 +585,15 @@ app.get( const resolved = path.resolve(path.join(uploadsRoot, rel)); // Path containment — never serve outside the uploads dir. if (resolved.startsWith(uploadsRoot + path.sep) && fs.existsSync(resolved)) { + // This route streams the file directly, bypassing the secureStatic + // middleware — so re-apply its SVG hardening here. An admin-uploaded + // SVG favicon could contain