Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS — GHSA-J839-GQQ4-GF9J
GitHub · GitHub · GHSA-J839-GQQ4-GF9J
ID
GHSA-J839-GQQ4-GF9J
GHSA-J839-GQQ4-GF9J
Date
Source
GitHub
GitHub
Vendor
GitHub
GitHub
Threat
medium
medium
Summary
### Summary jodit's `sanitizeHTMLElement` neutralizes a `javascript:` `href` using a bare `href.trim().indexOf('javascript') === 0` check. This omits the normalization jodit applies to every other URL attribute: `isDangerousUrl` strips control bytes with `value.replace(/[\u0000-\u0020]+/g, '')` and lowercases the value before testing the scheme. Because the `href` check does neither, it is bypassed by three…
Timeline
- Published by source
- 2026-07-31
Risk context
- Reported severity or threat level: medium.
- Review exposure for the affected product or family: npm: jodit.
Product
npm: jodit
What to do
General, cautious steps (verify details in the official source):
- Review exposure and plan remediation based on risk and environment.
- Identify affected product versions in your inventory and verify whether you are impacted.
- Apply vendor patches/updates or recommended mitigations as soon as available.
- Read the official advisory for exact affected versions and remediation steps.
Official advisory
Evidence and provenance
- Canonical advisory ID
- GHSA-J839-GQQ4-GF9J
- Source
- GitHub
- Vendor
- GitHub
- Published by source
- 2026-07-31
- Last source activity
- 2026-07-31
- Additional identifiers
- CVE-2026-62324
- Curated by
- hlukh.ch
Related advisories and connections
These advisories are connected by shared CVE, product, vendor, source, or time signals.