Vulnerabilities

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

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

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.

  1. Oct 26, 2026 · Red Hat Security Data

    Detected

    seroval: seroval: Cross-site scripting via improper regular expression serialization

  2. 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

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