XSS in Jsondiffpatch

CVE-2025-9910

Versions of the package jsondiffpatch before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin. An attacker can inject malicious scripts into HTML payloads that may lead to code execution if untrusted payloads were used as source for the diff, and the result renderer using the built-in html formatter on a private website.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.003 (20.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.7 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

  • N/a Jsondiffpatch — versions 0
  • N/a Org.webjars.bower:jsondiffpatch — versions 0
  • N/a Org.webjars.npm:jsondiffpatch — versions 0

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-9910?
CVE-2025-9910 is a medium-severity vulnerability in Jsondiffpatch, classified under Cross-site Scripting. CVSS score: 4.7/10. Published 2025-09-11.
How severe is CVE-2025-9910?
Medium severity. CVSS v3 base score is 4.7 out of 10.
Is CVE-2025-9910 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.