Skip to content
Heist/ feed
HighFix available

@rsdoctor/rspack-plugin has Unauthenticated HTTP API that Exposes Project Source Code and Build Metadata

Type: advisorySource: OSV1 source record

### Summary The default Rsdoctor report HTTP server started by `@rsdoctor/rspack-plugin` binds to all network interfaces (`0.0.0.0`) and serves a `POST /api/data/key` endpoint with no authentication and wildcard CORS (`Access-Control-Allow-Origin: *`). Any network-adjacent or remote attacker can send a single unauthenticated request to retrieve the full source code of all compiled JavaScript modules (`moduleCodeMap`), serialized build configuration (`configs`), error details, and other sensitive build metadata. This server is enabled by default in non-CI environments, requiring no special configuration from the victim developer. ### Details **Root cause: server binds to all interfaces with no authentication and no key allowlist.** The vulnerability is composed of four independently observable defects that together create a complete unauthenticated information-disclosure path: **1. Server binds to `0.0.0.0` (all interfaces)** `packages/utils/src/build/server.ts:107` calls `server.listen(port, callback)` without a `host` argument. Node.js defaults to `0.0.0.0`, exposing the server on every network interface of the developer's machine, including LAN interfaces. ```ts // packages/utils/src/build/server.ts:83,107 server.listen(port, () => { // no host → 0.0.0.0 resolve(res); }); ``` **2. Wildcard CORS enabled unconditionally** `packages/sdk/src/sdk/server/index.ts:106` applies `cors()` middleware with no origin restriction, and `:203–204` additionally sets `Access-Control-Allow-Or

Announced Source revision 1
Original source ↗

GHSA-jmg2-rcxh-w8q3

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-jmg2-rcxh-w8q3

@rsdoctor/rspack-plugin

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
1.5.16

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.5.16"
          }
        ]
      }
    ],
    "package": {
      "name": "@rsdoctor/rspack-plugin",
      "purl": "pkg:npm/%40rsdoctor/rspack-plugin",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-jmg2-rcxh-w8q3/GHSA-jmg2-rcxh-w8q3.json",
      "last_known_affected_version_range": "<= 1.5.15"
    }
  }
]
Related CVEs
CVE-2026-61782

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#14231 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement