{"schemaVersion":3,"id":"CVE-2026-47428","aliases":["GHSA-2h32-95rg-cppp"],"status":"published","duplicateOf":null,"title":null,"description":"Vitest is a testing framework powered by Vite. From 4.0.17 until 4.1.6 and 5.0.0-beta.3, Vitest Browser Mode served /__vitest_test__/ with the otelCarrier query parameter inserted directly into an inline module script, allowing a crafted browser-runner URL to execute arbitrary JavaScript in the Vitest server origin and recover VITEST_API_TOKEN for authenticated API calls. This issue is fixed in versions 4.1.6 and 5.0.0-beta.3.","dates":{"published":"2026-07-14T19:30:19.670Z","modified":"2026-07-15T13:20:14.275Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.6,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":7.2,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00613,"percentile":0.48628,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00613},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00613,"percentile":0.48628}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00613,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00613,"percentile":0.48628}]},"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-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"@vitest","product":"browser","name":"@vitest/browser","label":"browser","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@vitest/browser","purlType":"npm","versions":[{"text":"≥ 4.0.17, < 4.1.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0-beta.0, < 5.0.0-beta.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.17, < 4.1.6 | ≥ 5.0.0-beta.0, < 5.0.0-beta.3","eol":null,"hubHref":null},{"vendor":"vitest-dev","product":"vitest","name":"vitest","label":"vitest","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.17, < 4.1.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0-beta.0, < 5.0.0-beta.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.17, < 4.1.6 | ≥ 5.0.0-beta.0, < 5.0.0-beta.3","eol":null,"hubHref":"/vendor/vitest-dev/vitest"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp","label":"github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/vitest-dev/vitest/pull/10283","label":"github.com/vitest-dev/vitest/pull/10283","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10285","label":"github.com/vitest-dev/vitest/pull/10285","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","label":"github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","label":"github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.6","label":"github.com/vitest-dev/vitest/releases/tag/v4.1.6","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3","label":"github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest","label":"github.com/vitest-dev/vitest","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/client/public/esm-client-injector.js#L41","label":"github.com/vitest-dev/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/node/serverOrchestrator.ts#L48","label":"github.com/vitest-dev/…","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:39058"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-14T19:30:19.670Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T13:20:14.275Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T21:36:16.759Z","stale":false,"partial":false}}