Bug 2556244 (CVE-2026-112949) - CVE-2026-112949 vitest: Vitest: Cross-site scripting via unescaped mock module URL
Summary: CVE-2026-112949 vitest: Vitest: Cross-site scripting via unescaped mock modul...
Keywords:
Status: NEW
Alias: CVE-2026-112949
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2561804 2561805
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-20 15:33 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:29 UTC (History)
51 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-20 15:33:17 UTC
Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 2.1.0-beta.7 until 4.1.12 and 5.0.3, an unauthenticated non-browser WebSocket client that can reach a development server using interceptorPlugin can register a manual mock whose attacker-controlled url createManualModuleSource inserts unescaped into generated module source. When the developer browser loads the affected module, attacker-controlled JavaScript executes on the development-server origin. This issue is fixed in versions 4.1.12 and 5.0.3.


Note You need to log in before you can comment on or make changes to this bug.