{"id":"CVE-2026-116582","revision":null,"records":[{"revision":"036a3aab52c84b9d9cce6314ca01bed9","observedAt":"2026-10-26T21:35:30.991+00:00","statement":{"source":"cve-program","id":"CVE-2026-116582","aliases":[],"title":"Seroval: Script injection through RegExp sources in serialized output","description":"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.","state":0,"publishedAt":"2026-10-26T20:46:46.069+00:00","modifiedAt":"2026-10-26T20:46:46.069+00:00","affected":[{"ecosystem":"Vendor product","name":"seroval","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"lxsmnsyc\",\n                    \"product\": \"seroval\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.0.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 1.5.5, < 1.6.10\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"severity":"MEDIUM"}],"references":["https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349","https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6","https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-116582","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-116582","identifiers":["CVE-2026-116582"]},"retained":false,"historicalAffected":[]},{"revision":"7777ef7f7e2142f0bc69bb73880ac350","observedAt":"2026-10-28T21:57:38.093+00:00","statement":{"source":"euvd","id":"EUVD-2026-110449","aliases":["CVE-2026-116582"],"title":"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 c…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"severity":null}],"references":["https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349","https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6","https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-110449","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 26, 2026, 8:46:46 PM","dateUpdated":"Oct 26, 2026, 8:46:46 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-110449","identifiers":["EUVD-2026-110449","CVE-2026-116582"]},"retained":false,"historicalAffected":[]},{"revision":"3b41832ab75449858dac73ed304c62d9","observedAt":"2026-10-28T21:57:06.789+00:00","statement":{"source":"nvd","id":"CVE-2026-116582","aliases":[],"title":"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 c…","description":"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.","state":0,"publishedAt":"2026-10-26T21:18:16.267+00:00","modifiedAt":"2026-10-26T21:18:16.613+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"severity":"MEDIUM"}],"references":["https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6","https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10","https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-116582","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-79","CWE-116"],"productCriteria":[],"sourceDates":{"published":"2026-10-26T21:18:16.267","lastModified":"2026-10-26T21:18:16.613"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-116582","identifiers":["CVE-2026-116582"]},"retained":false,"historicalAffected":[]},{"revision":"0447f3b92e8e45659d668dc901aa82f8","observedAt":"2026-10-28T21:55:29.474+00:00","statement":{"source":"osv","id":"GHSA-9wx9-5pv9-3349","aliases":["CVE-2026-116582"],"title":"Seroval: Script injection through RegExp sources in serialized output","description":"### Summary\n\nseroval writes a `RegExp` as a regular expression literal. In affected versions, the `<` character in a `RegExp` source 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.\n\n### Details\n\nseroval escapes `<` in strings, so string values cannot end a `<script>` element. `RegExp` sources did not get the same escaping:\n\n- Versions before 1.0.0 wrote the source as is.\n- Version 1.5.5 stopped escaping `<` in `RegExp` sources, so that named groups and lookbehinds keep working. This removed the escaping for every `<` in a source.\n\nThese functions are affected:\n\n- `serialize`, `serializeAsync`\n- `crossSerialize`, `crossSerializeAsync`, `crossSerializeStream`\n- the `Serializer` class\n- `compileJSON`\n\n`toJSON`, `fromJSON`, `toCrossJSON` and `fromCrossJSON` are not affected, because they never produce JavaScript.\n\n### Impact\n\nAn application is affected when all of these are true:\n\n1. It builds a `RegExp` from untrusted input that is used as regular expression syntax. Input passed through an escaping helper (such as an `escapeRegExp` function) is not enough to exploit this.\n2. It serializes that `RegExp` with one of the functions above.\n3. It places the output inside an HTML `<script>` element, as server rendering usually does.\n\nIn that case an attacker can run script in the page of any user who receives that output.\n\n### Patches\n\nFixed in 1.6.10. A `RegExp` whose source contains `<` is now written with the `RegExp` constructor and an escaped string source. Named groups and lookbehinds keep working.\n\n### Workarounds\n\nIf you cannot upgrade:\n\n- Do not serialize a `RegExp` built from untrusted pattern syntax. Send its source and flags as strings, and build the `RegExp` on the client.\n- Or reject patterns that contain `<` before they reach the serializer.","state":0,"publishedAt":"2026-10-28T21:17:31+00:00","modifiedAt":"2026-10-28T21:30:04.9924147+00:00","affected":[{"ecosystem":"npm","name":"seroval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.5.5"},{"kind":"fixed","version":"1.6.10"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"seroval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349","https://nvd.nist.gov/vuln/detail/CVE-2026-116582","https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6","https://github.com/lxsmnsyc/seroval","https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10"],"sourceUrl":"https://github.com/advisories/GHSA-9wx9-5pv9-3349","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9wx9-5pv9-3349","identifiers":["GHSA-9wx9-5pv9-3349","CVE-2026-116582"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-30T02:49:08.6617237+00:00","complete":true,"records":1764,"lastAttemptAt":"2026-10-30T02:49:08.6617237+00:00","lastSuccessAt":"2026-10-30T02:49:08.8296789+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.8296797+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-7e2c4e7288f2c464ad8c61f3bb6017374714faedcc781283ac06a706ee1a820b-a9ed1cfe494f92fddb8cf6003b2df5b151f7456e4d1d2625f76ca8d81f0e234e","complete":true,"records":416814,"lastAttemptAt":"2026-10-30T02:49:08.1159624+00:00","lastSuccessAt":"2026-10-30T02:49:08.0942217+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.1159624+00:00","snapshotPublishedAt":"2026-10-30T02:28:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-78c11a9a83974f69b1b02671c6960ae3","complete":false,"records":13504,"lastAttemptAt":"2026-10-30T03:01:18.2254305+00:00","lastSuccessAt":"2026-10-30T03:01:18.221+00:00","error":"7 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-30T03:01:18.221+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13242,"expectedIdentifiers":13587,"failedIdentifiers":7},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-30T02:49:08.6617237+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-30T02:49:08.6617237+00:00","lastSuccessAt":"2026-10-30T02:49:08.8305166+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.8305167+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c39f89b50d5243318487ad216daf7ffb","complete":true,"records":13527,"lastAttemptAt":"2026-10-30T02:49:10.4405808+00:00","lastSuccessAt":"2026-10-29T22:50:37.74+00:00","error":null,"lastVerifiedAt":"2026-10-29T22:50:37.74+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13587,"expectedIdentifiers":13587,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-9016081e9e88f5929902343d85df87c5c4a1486b10ab07bc6c4f53f98f358871","complete":true,"records":9806,"lastAttemptAt":"2026-10-30T02:49:08.4920525+00:00","lastSuccessAt":"2026-10-29T17:17:25.9359141+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.4920525+00:00","snapshotPublishedAt":"2026-10-29T16:48:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-30T02:49:08.2775257+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.2775257+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5221f6b645588be0464ab0e16e8adfe42d1ccd8f841048d2bd4d0c1cf79fd6b1","complete":true,"records":3014,"lastAttemptAt":"2026-10-30T02:49:08.5949387+00:00","lastSuccessAt":"2026-10-30T00:54:54.6624163+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.5949387+00:00","snapshotPublishedAt":"2026-10-30T00:48:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-ec5b13e78c39945726a720832da7660d2774969f16e2a34f99460c135811abd5","complete":true,"records":230948,"lastAttemptAt":"2026-10-30T02:49:08.3853349+00:00","lastSuccessAt":"2026-10-29T22:50:35.0693267+00:00","error":null,"lastVerifiedAt":"2026-10-30T02:49:08.3853349+00:00","snapshotPublishedAt":"2026-10-29T22:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}