Cross-Site Scripting Vulnerability in jsondiffpatch Library from Benjamine
CVE-2025-9910

2.3LOW

What is CVE-2025-9910?

The jsondiffpatch library before version 0.7.2 is susceptible to a Cross-Site Scripting vulnerability that can be exploited through the HtmlFormatter::nodeBegin method. If an attacker uses untrusted payloads for generating diffs, they can inject harmful scripts into HTML content. This risk is particularly pronounced when the resulting diff is rendered using the library's built-in HTML formatter on private websites, potentially leading to unauthorized code execution.

Affected Version(s)

jsondiffpatch 0 < 0.7.2

org.webjars.bower:jsondiffpatch 0

org.webjars.npm:jsondiffpatch 0

References

CVSS V4

Score:
2.3
Severity:
LOW
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

zendive
.
CVE-2025-9910 : Cross-Site Scripting Vulnerability in jsondiffpatch Library from Benjamine