Repository navigation
chore(deps): update dependency seroval to v1.6.11 [security] - #5069
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-seroval-vulnerability
branch
from
October 30, 2026 10:45
11d4f55 to
8261b89
Compare
renovate
Bot
force-pushed
the
renovate/npm-seroval-vulnerability
branch
from
November 5, 2026 17:01
8261b89 to
e5e8736
Compare
Contributor
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.6.8→1.6.11Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Seroval: Script injection through RegExp sources in serialized output
CVE-2026-116582 / GHSA-9wx9-5pv9-3349
More information
Details
Summary
seroval writes a
RegExpas a regular expression literal. In affected versions, the<character in aRegExpsource 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.Details
seroval escapes
<in strings, so string values cannot end a<script>element.RegExpsources did not get the same escaping:<inRegExpsources, so that named groups and lookbehinds keep working. This removed the escaping for every<in a source.These functions are affected:
serialize,serializeAsynccrossSerialize,crossSerializeAsync,crossSerializeStreamSerializerclasscompileJSONtoJSON,fromJSON,toCrossJSONandfromCrossJSONare not affected, because they never produce JavaScript.Impact
An application is affected when all of these are true:
RegExpfrom untrusted input that is used as regular expression syntax. Input passed through an escaping helper (such as anescapeRegExpfunction) is not enough to exploit this.RegExpwith 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.
Patches
Fixed in 1.6.10. A
RegExpwhose source contains<is now written with theRegExpconstructor and an escaped string source. Named groups and lookbehinds keep working.Workarounds
If you cannot upgrade:
RegExpbuilt from untrusted pattern syntax. Send its source and flags as strings, and build theRegExpon the client.<before they reach the serializer.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Seroval: Code injection through a typed array's own constructor property
CVE-2026-116583 / GHSA-f86p-h4j2-7qgj
More information
Details
Summary
seroval writes a typed array as a call to its constructor. In affected versions, the constructor name in the output is read from a property that data on the value can replace, and it is written without checks. A typed array that received properties from untrusted data can then put arbitrary code into the serialized output.
Details
Version 1.6.0 changed how seroval finds the class of an object, so that objects with their own
constructorproperty serialize correctly. Typed arrays still took the constructor name from the value itself, so the name could come from the untrusted property instead of the array's real type.These functions are affected:
serialize,serializeAsynccrossSerialize,crossSerializeAsync,crossSerializeStreamSerializerclasscompileJSONfromJSONandfromCrossJSONare not affected: they only accept the names of the built-in typed arrays. With thecompactArrayBufferViewsoption, the same lookup throws aTypeErrorinstead of writing code.Impact
An application is affected only when it serializes a typed array that has an own
constructorproperty set from untrusted data. That requires code that copies properties from untrusted objects onto a typed array. This is unusual, so the severity is rated Low, even though the result is script execution in the page that receives the output.Patches
Fixed in 1.6.11. The constructor name now comes from the array's internal type, which properties on the value cannot change.
compactArrayBufferViewsuses the real type as well.Workarounds
If you cannot upgrade, do not copy properties from untrusted objects onto typed arrays, or remove an own
constructorproperty from a typed array before serializing it.Severity
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
lxsmnsyc/seroval (seroval)
v1.6.11Compare Source
v1.6.10Compare Source
v1.6.9Compare Source
Configuration
📅 Schedule: (in timezone Europe/Zurich)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.