π OpenHands: AI-Driven Development
fix(deps): patch DOMPurify sanitization bypass (#17060)
lzhan011a16becd00dd9
diff --git a/AGENTS.md b/AGENTS.mdindex c473b966f6..07d8e8a8ca 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -352,7 +352,7 @@ Ensure each test is meaningful, concise, and covers a unique aspect of user inte- Direct `dependencies` and `devDependencies` in `package.json` are exact-pinned (no caret ranges); reproducible installs should use the committed `package-lock.json` plus `npm ci`, and targeted transitive fixes still belong in `overrides`.- Current `overrides` in `package.json` and the advisories they address (keep this list in sync when adding/removing overrides):- `@vercel/static-config > ajv: 8.20.0` β **GHSA-2g4f-4pwh-qvx6** (ReDoS in ajv's `$data` option, affects 7.0.0-alpha.0β8.17.1, reaches us through `@vercel/react-router` β `@vercel/static-config` β `[email protected]`). The override is intentionally **scoped** to `@vercel/static-config`: a top-level `ajv` override forces ajv 8.x everywhere and breaks ESLint's `@eslint/eslintrc`, which requires ajv ^6.x (incompatible API). Scoping lets ESLint keep its nested `[email protected]` while only the vulnerable consumer is bumped.- - `dompurify: 3.4.12` β keeps Monaco's exact-pinned `[email protected]` on a patched release for **GHSA-39q2-94rc-95cp** and related XSS bypasses.+ - `dompurify: 3.4.14` β keeps Monaco's exact-pinned `[email protected]` on a patched release for **GHSA-55q2-fjhq-7xh7**, **GHSA-39q2-94rc-95cp**, and related XSS bypasses.- `typed-rest-client > qs: 6.15.3` β overrides the vulnerable `[email protected]` exact-pinned by every published `typed-rest-client` release in the `@stryker-mutator/core` dependency tree.- When bumping pinned versions, use npm to update `package.json` and `package-lock.json` together; do not hand-edit only one of them.- `npm test` now runs `npm run make-i18n` first so clean environments generate `src/i18n/declaration.ts` before Vitest loads aliased imports.diff --git a/package-lock.json b/package-lock.jsonindex ca73169fc8..c69b82a979 100644--- a/package-lock.json+++ b/package-lock.json@@ -10934,9 +10934,9 @@}},"node_modules/dompurify": {- "version": "3.4.12",- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.12.tgz",- "integrity": "sha512-zQvGet8Z2sWbQhCmfFz/T5QWH2oBmjnqK3qvOjaqaNLrLEF912WamU+ohnTp0TCep/MFVHpdJuCZEdFOdTnEFg==",+ "version": "3.4.14",+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.14.tgz",+ "integrity": "sha512-dVoH9z+MY+C9IilgGCk3YfFqjLi3fChm2OiKJMzh6axrJ5qwxqWaZamgmHrpv22CN/KdbZJuGEGgfQoL00LTdg==","license": "(MPL-2.0 OR Apache-2.0)","optionalDependencies": {"@types/trusted-types": "^2.0.7"diff --git a/package.json b/package.jsonindex 1342c21223..be6b3311a4 100644--- a/package.json+++ b/package.json@@ -187,7 +187,7 @@"@vercel/static-config": {"ajv": "8.20.0"},- "dompurify": "3.4.12",+ "dompurify": "3.4.14","typed-rest-client": {"qs": "6.15.3"}