
Loading

Loading
We use strictly necessary cookies to run this site, and analytics cookies to understand how it's used. See our Privacy Policy for details.
A GitHub-reviewed security advisory, not necessarily under active exploitation the way our CISA KEV advisories are, but a real, disclosed vulnerability in an open-source dependency.
Affected packages
Vulnerable: >= 1.5.5, < 1.6.10
Patched in 1.6.10
Vulnerable: < 1.0.0
Patched in 1.0.0
Details
seroval writes a RegExp as a regular expression literal. In affected versions, the < character in a RegExp source is written without escaping. A source built from untrusted input can then end the HTML <script> element that the serialized output is placed in, and run script in the page.
seroval escapes < in strings, so string values cannot end a <script> element. RegExp sources did not get the same escaping:
< in RegExp sources, so that named groups and lookbehinds keep working. This removed the escaping for every < in a source.These functions are affected:
serialize, serializeAsynccrossSerialize, crossSerializeAsync, crossSerializeStreamSerializer classcompileJSONtoJSON, fromJSON, toCrossJSON and fromCrossJSON are not affected, because they never produce JavaScript.
An application is affected when all of these are true:
RegExp from untrusted input that is used as regular expression syntax. Input passed through an escaping helper (such as an escapeRegExp function) is not enough to exploit this.RegExp with one of the functions above.<script> element, as server rendering usually does.In that case an attacker can run script in the page of any user who receives that output.
Fixed in 1.6.10. A RegExp whose source contains < is now written with the RegExp constructor and an escaped string source. Named groups and lookbehinds keep working.
If you cannot upgrade:
RegExp built from untrusted pattern syntax. Send its source and flags as strings, and build the RegExp on the client.< before they reach the serializer.EPSS, exploit probability
Low0.19%
estimated chance of real-world exploitation in the next 30 days, higher than 8.4% of every CVE FIRST.org scores
Refreshed 10/28/2026, via FIRST.org's EPSS model, not CVSS, this measures likelihood of exploitation, not how severe it would be.
Talk to us about this
Find out whether this dependency (or others like it) is actually reachable in your codebase.
Get help patching, or building dependency-scanning into your pipeline going forward.
A secure code review or supply chain review finds this before an advisory does.