jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin
Low severity
GitHub Reviewed
Published
Sep 11, 2025
to the GitHub Advisory Database
•
Updated Sep 12, 2025
Description
Published by the National Vulnerability Database
Sep 11, 2025
Published to the GitHub Advisory Database
Sep 11, 2025
Reviewed
Sep 12, 2025
Last updated
Sep 12, 2025
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.
References