Seroval: Code injection through a typed array's own constructor property
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.6.11.
Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. From 1.6.0 until 1.6.11, the JavaScript-output APIs derive a typed array's constructor name from a property on the value that can be replaced by an own constructor property. When application code copies untrusted properties onto a typed array and then passes it to serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON, the attacker-controlled name is written as executable JavaScript and can run in the page receiving the output. This issue is fixed in version 1.6.11.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| lxsmnsyc | >=1.6.0 <1.6.11 | ||
| npm: seroval | >=1.6.0 <1.6.11 | 1.6.11 |
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