Description
OWASP json-sanitizer before 1.2.1 allows XSS. An attacker who controls a substring of the input JSON, and controls another substring adjacent to a SCRIPT element in which the output is embedded as JavaScript, may be able to confuse the HTML parser as to where the SCRIPT element ends, and cause non-script content to be interpreted as JavaScript.
Remediation
References
https://github.com/OWASP/json-sanitizer/pull/20
Related Vulnerabilities
CVE-2022-22984 Vulnerability in npm package @snyk/snyk-cocoapods-plugin
CVE-2020-7961 Vulnerability in maven package com.liferay.portal:com.liferay.portal.impl
CVE-2021-39236 Vulnerability in maven package org.apache.ozone:ozone-main
CVE-2017-16139 Vulnerability in npm package jikes
CVE-2022-36921 Vulnerability in maven package org.jenkins-ci.plugins:coverity