{"schemaVersion":4,"id":"CVE-2026-115895","aliases":["GHSA-834v-8h66-3h79","CGA-32xp-jg9g-pfhp","CGA-46vq-mxfq-8wfc","CGA-ccv4-m633-4m5q"],"status":"published","duplicateOf":null,"title":"Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution","description":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. From 17.0.0 until 21.0.4, packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts accepts a named ESM import alias without validating that it is a JavaScript binding identifier before inserting it into a generated destructuring binding. With enableJavaScriptEvaluation enabled, attacker-controlled HTML or module source can use an invalid alias that becomes a valid default initializer after compilation, causing the generated JavaScript to execute in the Node.js host process. The demonstrated reachable path uses a JSON module import attribute, which prevents the malicious alias from being emitted again in a later ESM circular-import assignment and keeps the generated function syntactically valid. This incomplete fix for CVE-2026-33943 is a distinct residual path because the earlier remediation validated the local export importName path but not the named-import alias. This issue is fixed in version 21.0.4.","dates":{"published":"2026-10-23T21:32:24.999Z","modified":"2026-10-30T18:43:41.641Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.00473,"percentile":0.42559,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00473},"history":[{"date":"2026-10-24T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00473,"percentile":0.42559}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00558,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00473,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00473,"percentile":0.42559}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"chainguard","product":"librechat","name":"librechat","label":"librechat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/librechat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 0.8.8-r8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.8.8-r8","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 0.8.8-r8","eol":null,"hubHref":null},{"vendor":"capricorn86","product":"happy-dom","name":"happy-dom","label":"happy-dom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 17.0.0, < 21.0.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"17.0.0","startInclusive":true,"end":"21.0.4","endInclusive":false}}],"versionsText":"≥ 17.0.0, < 21.0.4","eol":null,"hubHref":"/vendor/capricorn86/happy-dom"},{"vendor":"Npm","product":"happy-dom","name":"happy-dom","label":"happy-dom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/happy-dom","purlType":"npm","versions":[{"text":"≥ 17.0.0, < 21.0.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"17.0.0","startInclusive":true,"end":"21.0.4","endInclusive":false}}],"versionsText":"≥ 17.0.0, < 21.0.4","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79","label":"github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2537","label":"github.com/capricorn86/happy-dom/pull/2537","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13","label":"github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v21.0.4","label":"github.com/capricorn86/happy-dom/releases/tag/v21.0.4","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom","label":"github.com/capricorn86/happy-dom","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115895.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115895.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115895","label":"nvd.nist.gov/vuln/detail/CVE-2026-115895","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-23T21:32:24.999Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-30T18:43:41.641Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,88],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00473,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-30T18:43:41.641Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-30T18:43:41.641Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-10-30T18:43:41.641Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2026-10-30T18:43:41.641Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-30T18:43:36.234Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00473,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:40:43.010Z","stale":false,"partial":false}}