<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 23 Oct 2026 03:21:06 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-112949</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2026-112949</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2026-112949</guid>
    </item>
    <item>
      <title>GHSA-qxg6-89mg-rqv8 — Vitest: Code injection via unauthenticated manual mock registration</title>
      <link>https://db.gcve.eu/vuln/ghsa-qxg6-89mg-rqv8</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @vitest/mocker&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;`@vitest/mocker`&amp;#39;s `interceptorPlugin` accepts mock registrations on Vite&amp;#39;s dev-server WebSocket with no authentication, and interpolates the mock&amp;#39;s `url` into generated module source without escaping. A client that can reach the dev server can make it serve arbitrary JavaScript in place of any project module, which then runs in the developer&amp;#39;s browser on the dev-server origin.&lt;/p&gt;
&lt;p&gt;Same handler and same unauthenticated caller as GHSA-82fw-gwwq-j7x9; that fix (`8ff9b9a9efca7c6cfd5243569440de8d7a33aec4`, PR #10972) hardened only the `redirect` branch and left the `manual` branch reaching the unescaped generator.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in `@vitest/mocker` 5.0.3, released on 2026-09-30 (PR #11377), and backported to 4.1.12. `createManualModuleSource` now serializes the module URL and the export names with `JSON.stringify`, so a registered mock cannot change the generated code.&lt;/p&gt;
&lt;p&gt;Projects that call `mockerPlugin()` or `interceptorPlugin()` directly need `@vitest/mocker` 4.1.12 or 5.0.3.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;`packages/mocker/src/utils.ts:6-9` builds module source by string interpolation:&lt;/p&gt;
&lt;p&gt;```ts
export function createManualModuleSource(moduleUrl: string, exports: string[], globalAccessor = &amp;#39;&amp;#34;__vitest_mocker__&amp;#34;&amp;#39;): string {
  const source = `
const __factoryModule__ = await globalThis[${globalAccessor}].getFactoryModule(&amp;#34;${moduleUrl}&amp;#34;);
`
```&lt;/p&gt;
&lt;p&gt;`moduleUrl` lands inside a double-quoted JavaScript string with no escaping or validation.&lt;/p&gt;
&lt;p&gt;`packages/mocker/src/node/interceptorPlugin.ts:66-9…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @vitest/mocker&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;`@vitest/mocker`&amp;#39;s `interceptorPlugin` accepts mock registrations on Vite&amp;#39;s dev-server WebSocket with no authentication, and interpolates the mock&amp;#39;s `url` into generated module source without escaping. A client that can reach the dev server can make it serve arbitrary JavaScript in place of any project module, which then runs in the developer&amp;#39;s browser on the dev-server origin.&lt;/p&gt;
&lt;p&gt;Same handler and same unauthenticated caller as GHSA-82fw-gwwq-j7x9; that fix (`8ff9b9a9efca7c6cfd5243569440de8d7a33aec4`, PR #10972) hardened only the `redirect` branch and left the `manual` branch reaching the unescaped generator.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in `@vitest/mocker` 5.0.3, released on 2026-09-30 (PR #11377), and backported to 4.1.12. `createManualModuleSource` now serializes the module URL and the export names with `JSON.stringify`, so a registered mock cannot change the generated code.&lt;/p&gt;
&lt;p&gt;Projects that call `mockerPlugin()` or `interceptorPlugin()` directly need `@vitest/mocker` 4.1.12 or 5.0.3.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;`packages/mocker/src/utils.ts:6-9` builds module source by string interpolation:&lt;/p&gt;
&lt;p&gt;```ts
export function createManualModuleSource(moduleUrl: string, exports: string[], globalAccessor = &amp;#39;&amp;#34;__vitest_mocker__&amp;#34;&amp;#39;): string {
  const source = `
const __factoryModule__ = await globalThis[${globalAccessor}].getFactoryModule(&amp;#34;${moduleUrl}&amp;#34;);
`
```&lt;/p&gt;
&lt;p&gt;`moduleUrl` lands inside a double-quoted JavaScript string with no escaping or validation.&lt;/p&gt;
&lt;p&gt;`packages/mocker/src/node/interceptorPlugin.ts:66-9…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-qxg6-89mg-rqv8</guid>
    </item>
  </channel>
</rss>
