CVE-2026-140391 (Medium) detected in dompurify-3.4.1.tgz

Offen
#410 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react
Bereich
security

Rechercherichtung

Start with the dependency declaration in ui/package.json and check how the UI dependency tree resolves dompurify through Monaco Editor. Update the dependency path to a version that includes the reported fix, then confirm the resolved version is at least 3.4.18. The issue gives no test or verification command, so first check the UI package's existing dependency and lockfile workflow.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Mend: dependency security vulnerability

CVE-2026-140391 - 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/[email protected]/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)

Found in base branch: master

Vulnerability Details

DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.

Publish Date: 2026-12-01

URL: CVE-2026-140391

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-12-01

Fix Resolution: dompurify - 3.4.18


Step up your Open Source Security Game with Mend here

Vorherrschende Sprache
Go
Sterne
2.8k
Forks
88
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus postgres-ai/database-lab-engine

Alle Issues in postgres-ai/database-lab-engine

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.