Vulnerability · CVE-2026-116582
Seroval: Script injection through RegExp sources in serialized output
Published Oct 26, 2026 · catalog updated Oct 28, 2026 · Red Hat Red Hat Enterprise Linux
Last checked Nov 5, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-116582. EPSS is 0.19%. Act only if a listed version of Red Hat Red Hat Enterprise Linux is installed.
Gaps on this record
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
Same product and reporting
- CVE-2026-119776 · High
- CVE-2026-100302 · Medium
- CVE-2026-115448 · High
- CVE-2026-100252 · High
- CVE-2026-100235 · Medium
- Severity
- Medium4.7
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.19%
- Remediation
- Version ranges on file
- Affected products
- npm seroval
### Summary seroval writes a as a regular expression literal. In affected versions, the character in a source is written without escaping. A source built from untrusted input can then end the HTML 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 element. sources did not get the same escaping: - Versions before 1.0.0 wrote the source as is. - Version 1.5.5 stopped escaping in sources, so that named groups and lookbehinds keep working. This removed the escaping for every in a source. These functions are affected: - , - , , - the class - , , and are not affected, because they never produce JavaScript. ### Impact An application is affected when all of these are true: 1. It builds a from untrusted input that is used as regular expression syntax. Input passed through an escaping helper (such as an function) is not enough to exploit this. 2. It serializes that with one of the functions above. 3. It places the output inside an HTML 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 whose source contains is now written with the constructor and an escaped string source. Named groups and lookbehinds keep working. ### Workarounds If you cannot upgrade: - Do not serialize a built from untrusted pattern syntax. Send its source and flags as strings, and build the on the client. - Or reject patterns that contain before they reach the serializer.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- npm seroval< 1.0.0
- npm seroval>= 1.5.5, < 1.6.10
How to fix CVE-2026-116582
Upgrade
CVE-2026-116582 lists a fix boundary at 1.0.0. Compare the installed build with that boundary before you change production.
Version check
Affected < 1.0.0
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-116582. EPSS is 0.19%. Act only if a listed version of Red Hat Red Hat Enterprise Linux is installed.
Which versions are affected?
Compare what you have installed with < 1.0.0, >= 1.5.5, < 1.6.10. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-116; CWE-79: Cross-site Scripting (XSS). EPSS 0.19%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 26, 2026 · Red Hat Security Data
Detected
seroval: seroval: Cross-site scripting via improper regular expression serialization
Oct 28, 2026 · GitHub Advisory Database
Updated
### Summary seroval writes a as a regular expression literal. In affected versions, the character in a source is written without escaping. A source built from untrusted input can then end the HTML 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 element. sources did not get the same escaping: - Versio
Sources
- CVE.orgVulnerability recordCVE-2026-116582
Official CVE identifier
cve.org - GitHub Advisory DatabasePackage advisoryGHSA-9wx9-5pv9-3349
Seroval: Script injection through RegExp sources in serialized output
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-116582
seroval writes a RegExp as a regular expression literal. In affected versions, the element that the serialized output is placed in, and run script in the page.
advisories.gitlab.com - Red Hat Security DataVendor advisoryCVE-2026-116582
seroval: seroval: Cross-site scripting via improper regular expression serialization
access.redhat.com
References
Freshness
Last verified in this catalog Nov 5, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- GitHub Advisory DatabaseOct 30, 2026
- GitLab Advisory DatabaseOct 29, 2026
- CVE.orgOct 27, 2026
- Red Hat Security DataOct 27, 2026