CVE-2021-23899

OWASP json-sanitizer before 1.2.2 may emit closing SCRIPT tags and CDATA section delimiters for crafted input

published January 13, 2021

CVSS
—
EPSS
2%
Percentile
81.5
In the wild
Unconfirmed
What it is

⚠️ A crafted input can sneak in closing SCRIPT tags like an unexpected guest crashing your party! 🥳 Think of the json-sanitizer as a security guard at a concert, supposed to filter out unwanted guests. If the guard is not paying attention, someone could slip in with a fake ticket, bringing in all sorts of trouble instead of music! If exploited, an attacker could inject arbitrary HTML or XML into embedding documents, leading to potential data manipulation or even stealing sensitive information. It's like having your personal diary opened to the public — anyone can see and alter your secrets!

Put simply

Think of the json-sanitizer as a security guard at a concert, supposed to filter out unwanted guests. If the guard is not paying attention, someone could slip in with a fake ticket, bringing in all sorts of trouble instead of music! This vulnerability arises because the json-sanitizer before version 1.2.2 can emit closing SCRIPT tags and CDATA section delimiters, allowing crafted input to bypass sanitization and execute unwanted scripts.

What to do

If exploited, an attacker could inject arbitrary HTML or XML into embedding documents, leading to potential data manipulation or even stealing sensitive information. It's like having your personal diary opened to the public — anyone can see and alter your secrets! Upgrade to json-sanitizer version 1.2.2 or later immediately. Additionally, review your input handling to ensure robust sanitization practices are in place. Don't let rogue scripts crash your digital party! You've got this! With a simple update, you can keep your data safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02093 · 81.5th percentile
Published
2021-01-13T15:49Z
EPSS history
Timeline
  • 13 JAN 15:49Z
    OWASP json-sanitizer before 1.2.2 may emit closing SCRIPT tags and CDATA section delimiters for crafted input
    cvelistv5