Skip to content
OpenAdvisories
Medium · 4.7 CVE-2025-9910 EUVD-2025-27629GHSA-33vc-wfww-vjfv

jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin

Published Sep 11, 2025 · Updated Sep 11, 2025 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— jsondiffpatch < 0.7.2 0.7.2
— org.webjars.npm:jsondiffpatch — —
— org.webjars.bower:jsondiffpatch — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu +2 2.11.0-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm jsondiffpatch < 0.7.2 0.7.2 GHSA-33vc-wfww-vjfv

References