security: swap sanitizer to xss for Jest-compatible SSR output

- Replace isomorphic-dompurify with xss to avoid ESM-only jsdom/htmlparser2
  transitive deps that break the existing Jest test suite.
- Keep rendered docs HTML sanitized via xss() in routes/docs.js.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-18 23:02:11 -04:00
parent bdaba513a7
commit 6ede072213
3 changed files with 30 additions and 534 deletions
+2 -2
View File
@@ -31,7 +31,6 @@
"express": "^5.2.1",
"express-rate-limit": "^8.5.2",
"extend": "^3.0.2",
"isomorphic-dompurify": "^3.19.0",
"jq-repeat": "^2.2.0",
"jquery": "^4.0.0",
"ldapts": "^8.1.8",
@@ -43,7 +42,8 @@
"p2psub": "^0.2.0",
"redis": "^6.1.0",
"socket.io": "^4.8.3",
"tld-extract": "^2.1.0"
"tld-extract": "^2.1.0",
"xss": "^1.0.15"
},
"license": "MIT",
"repository": {