CVE-2023-24540

Critical

Description

Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.

SeverityCritical
CVSS9.8
Exploit probability—
ProductGo
PublishedMay 11, 2023
First seenMay 11, 2023
Weakness typeCWE-74Injection

How to fix

Update
  • golang go1.19.9, 1.20.4 or later
  • stdlib1.19.9, 1.20.4 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.19.9, 1.20.0 ≤ v < 1.20.41.19.9, 1.20.4
stdlibGov < 1.19.9, 1.20.0-0 ≤ v < 1.20.41.19.9, 1.20.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.