PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-5751 EmilStenstrom CVE debrief

CVE-2026-5751 is a medium-severity vulnerability in justhtml versions 1.13.0 and earlier. The vulnerability is a parser-differential / mutation cross-site scripting (mXSS) issue that occurs when using a custom SanitizationPolicy that preserves foreign namespaces. This could allow for markup injection if specially crafted input is sanitized into markup that appears safe but becomes unsafe when re-parsed by a browser or another HTML parser. The default safe configuration (sanitize=True) is not affected. The issue was fixed in version 1.14.0.

Vendor
EmilStenstrom
Product
justhtml
CVSS
MEDIUM 5.1
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-23
Original CVE updated
2026-10-12
Advisory published
2026-08-23
Advisory updated
2026-10-12

Who should care

Defenders responsible for systems using justhtml versions 1.13.0 or earlier with custom SanitizationPolicies should assess exposure and prioritize upgrading to version 1.14.0 or later.

Why it matters

CVE-2026-5751 is a medium-severity vulnerability in justhtml that could allow for markup injection and XSS attacks when using custom SanitizationPolicies. Defenders should verify justhtml versions, assess policy usage, and prioritize upgrades to version 1.14.0 or later.

  • Potential for markup injection and cross-site scripting (XSS) attacks
  • Requires verification of justhtml version and custom SanitizationPolicy usage
  • Prioritization of upgrades to version 1.14.0 or later
  • Limited information on potential exploitation or affected systems

Technical summary

The vulnerability is a parser-differential / mutation cross-site scripting (mXSS) issue in justhtml versions 1.13.0 and earlier. It occurs when using a custom SanitizationPolicy that preserves foreign namespaces, allowing for markup injection if specially crafted input is sanitized into markup that appears safe but becomes unsafe when re-parsed by a browser or another HTML parser. The default safe configuration (sanitize=True) is not affected. Fixed in 1.14.0. Defenders should prioritize verifying and upgrading to version 1.14.0 or later if using justhtml versions 1.13.0 or earlier with custom SanitizationPolicies that preserve foreign namespaces.

Defensive priority

Defenders should prioritize verifying and upgrading to version 1.14.0 or later if using justhtml versions 1.13.0 or earlier with custom SanitizationPolicies that preserve foreign namespaces.

Recommended defensive actions

  • Verify justhtml version and assess use of custom SanitizationPolicies
  • Upgrade to version 1.14.0 or later if vulnerable
  • Review and adjust SanitizationPolicies to ensure safe configuration
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, its impact, and the fixed version. However, there is limited information on potential exploitation or affected systems. Defenders should verify justhtml versions, assess policy usage, and prioritize upgrades to version 1.14.0 or later. The vulnerability is a parser-differential / mutation cross-site scripting (mXSS) issue in justhtml versions 1.13.0 and earlier. It occurs when using a custom SanitizationPolicy that preserves foreign namespaces, allowing for markup

Sources and references

Verified primary and authoritative sources

  • CVE-2026-5751 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-5751

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-5751 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-5751

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.