Unblock Dependabot security updates by removing monaco dependency chain pinning vulnerable DOMPurify #27

Merged
Copilot merged 1 commits from copilot/fix-dependabot-job-failure into main 2026-08-15 00:09:30 +02:00
Copilot commented 2026-08-15 00:08:02 +02:00 (Migrated from github.com)

Dependabot’s npm_and_yarn security job was failing with security_update_not_possible because the dependency graph was locked to dompurify@3.4.8 through @monaco-editor/react -> monaco-editor@0.56.0. Since the security advisory requires dompurify >= 3.4.13, the updater could not produce a valid remediation PR.

  • Root cause

    • @monaco-editor/react introduced a transitive path to monaco-editor@0.56.0, which pins vulnerable dompurify@3.4.8.
    • That pin blocked Dependabot from resolving to a non-vulnerable dompurify version.
  • Change made

    • Removed @monaco-editor/react from package.json (unused in src/).
    • Regenerated package-lock.json to remove the monaco-editor subtree and its pinned dompurify@3.4.8.
  • Resulting dependency-shape change

    // package.json (dependencies)
    {
      "dependencies": {
        // removed:
        // "@monaco-editor/react": "^4.6.0"
      }
    }
    
Dependabot’s `npm_and_yarn` security job was failing with `security_update_not_possible` because the dependency graph was locked to `dompurify@3.4.8` through `@monaco-editor/react -> monaco-editor@0.56.0`. Since the security advisory requires `dompurify >= 3.4.13`, the updater could not produce a valid remediation PR. - **Root cause** - `@monaco-editor/react` introduced a transitive path to `monaco-editor@0.56.0`, which pins vulnerable `dompurify@3.4.8`. - That pin blocked Dependabot from resolving to a non-vulnerable `dompurify` version. - **Change made** - Removed `@monaco-editor/react` from `package.json` (unused in `src/`). - Regenerated `package-lock.json` to remove the `monaco-editor` subtree and its pinned `dompurify@3.4.8`. - **Resulting dependency-shape change** ```json // package.json (dependencies) { "dependencies": { // removed: // "@monaco-editor/react": "^4.6.0" } } ```
Quinta0 (Migrated from github.com) reviewed 2026-08-15 00:08:02 +02:00
Sign in to join this conversation.