CVE-2026-65899 (Medium) detected in dompurify-3.4.1.tgz
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
Research direction
Start with /ui/package.json and trace the reported dependency hierarchy through react and monaco-editor to dompurify 3.4.1. Confirm how the UI dependency is resolved, update it to the reported fixed version 3.4.9, and verify that the vulnerable dompurify version is no longer present.
Written by the indexing model from the issue text.
Description
CVE-2026-65899 - Medium Severity Vulnerability
Vulnerable Library - dompurify-3.4.1.tgz
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin
Library home page: https://registry.npmjs.org/dompurify/-/dompurify-3.4.1.tgz
Sample Path to Dependency File: /ui/package.json
Path to vulnerable library: /ui/node_modules/.pnpm/dompurify@3.4.1/node_modules/dompurify/package.json
Dependency Hierarchy:
- @postgres.ai/ce-4.0.3.tgz (Root Library)
- react-4.7.0.tgz
- monaco-editor-0.55.1.tgz
- ❌ dompurify-3.4.1.tgz (Vulnerable Library)
- monaco-editor-0.55.1.tgz
- react-4.7.0.tgz
Found in base branch: master
Vulnerability Details
DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.
Publish Date: 2026-07-23
URL: CVE-2026-65899
CVSS 3 Score Details (6.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Changed
- Impact Metrics:
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Release Date: 2026-07-23
Fix Resolution: dompurify - 3.4.9,https://github.com/cure53/DOMPurify.git - 3.4.9
Step up your Open Source Security Game with Mend here
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from postgres-ai/database-lab-engine
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Mend: dependency security vulnerability
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
All issues in postgres-ai/database-lab-engine
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·