Seroval: Script injection through RegExp sources in serialized output
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in seroval 1.0.0 and seroval 1.6.10.
Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.0.0 and from 1.5.5 until 1.6.10, the JavaScript-output APIs serialize a RegExp source containing a less-than character without the escaping needed for an HTML script element. An application is affected when it builds regular expression syntax from untrusted input, serializes that RegExp through serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON, and embeds the result in an HTML script element. The crafted source can terminate the element and execute script in the page received by another user. This issue is fixed in version 1.6.10.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| lxsmnsyc | <1.0.0, >=1.5.5 <1.6.10 | ||
| npm: seroval | <1.0.0, >=1.5.5 <1.6.10 | 1.0.0, 1.6.10 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in seroval (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket