CVE-2026-122234 · Package
NO FIX YET · SEE WHAT TO DO
jsondiffpatch before 0.7.7 fails to escape an array-move destination index when rendering a delta as HTML. An attacker who controls the delta can run script in the origin of the application that renders it.
first public Nov 1, 2026 · 1 source
Check it with your coding agent
It checks your repository and tells you if you’re affected, with the fix.
Applications that use the jsondiffpatch HTML or annotated formatters on deltas that users can influence are exposed to script injection in their own origin. Apps that only diff data internally, or never render the output as HTML, are not exposed. The sources do not say whether the flaw reaches any other formatter.
Not affected if internal-data-only, no-html-formatter
Who cares javascript, npm, web-frontend
npm ls jsondiffpatch and compare it to 0.7.7.formatters.html.format() or formatters.annotated.format().jsondiffpatch to 0.7.7 or later, per the advisory.jsondiffpatch before 0.7.7 contains a cross-site scripting vulnerability that allows attackers to inject markup by supplying an unescaped array-move destination index in a delta. Attackers who control a delta passed to formatters.html.format() or formatters.annotated.format() can embed script that executes in the application's origin when output is rendered.
Are you affected?
Tell InfraStack what you run. It checks this one, and every next one, against your stack.
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.