Skip to content
Heist/ feed
Back to feed
Low

webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior

Type: advisorySources: OSV

Webpack is a module bundler. From version 5.49.0 to before 5.104.1, when experiments.buildHttp is enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) can be bypassed to fetch resources from hosts outside allowedUris by using crafted URLs that include userinfo (username:password@host). If allowedUris enforcement relies on a raw string prefix check (e.g., uri.startsWith(allowed)), a URL that looks allow-listed can pass validation while the actual network request is sent to a different authority/host after URL parsing. This is a policy/allow-list bypass that enables build-time SSRF behavior (outbound requests from the build machine to internal-only endpoints, depending on network access) and untrusted content inclusion (the fetched response is treated as module source and bundled). This issue has been patched in version 5.104.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-68458
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:05 UTC · Revision 1

Source evidence

webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior

core-osv · Original source

Published 5 Feb 2026, 23:08 UTC

Webpack is a module bundler. From version 5.49.0 to before 5.104.1, when experiments.buildHttp is enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) can be bypassed to fetch resources from hosts outside allowedUris by using crafted URLs that include userinfo (username:password@host). If allowedUris enforcement relies on a raw string prefix check (e.g., uri.startsWith(allowed)), a URL that looks allow-listed can pass validation while the actual network request is sent to a different authority/host after URL parsing. This is a policy/allow-list bypass that enables build-time SSRF behavior (outbound requests from the build machine to internal-only endpoints, depending on network access) and untrusted content inclusion (the fetched response is treated as module source and bundled). This issue has been patched in version 5.104.1.

osv:CVE-2025-68458
Complete source record
{
  "id": "5ec2cae5819499014dd2843114d5d74a344d36b3d02b2297bbcd390a73bbebf8",
  "url": "https://osv.dev/vulnerability/CVE-2025-68458",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior",
    "summary": "Webpack is a module bundler. From version 5.49.0 to before 5.104.1, when experiments.buildHttp is enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) can be bypassed to fetch resources from hosts outside allowedUris by using crafted URLs that include userinfo (username:password@host). If allowedUris enforcement relies on a raw string prefix check (e.g., uri.startsWith(allowed)), a URL that looks allow-listed can pass validation while the actual network request is sent to a different authority/host after URL parsing. This is a policy/allow-list bypass that enables build-time SSRF behavior (outbound requests from the build machine to internal-only endpoints, depending on network access) and untrusted content inclusion (the fetched response is treated as module source and bundled). This issue has been patched in version 5.104.1.",
    "evidence": "osv:CVE-2025-68458",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-68458",
      "aliases": [
        "CVE-2025-68458",
        "GHSA-8fgc-7cc6-rx7x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/webpack/webpack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d3868384c37f9d674d1db17a0198393bd213c763"
                },
                {
                  "fixed": "24e3c2d2c9f8c6d60810302b2ea70ed86e2863dc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.49.0"
                      },
                      {
                        "fixed": "5.104.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:webpack.js:webpack:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "5.49.0"
                      },
                      {
                        "fixed": "5.104.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.104.0",
            "v5.103.0",
            "v5.102.1",
            "v5.102.0",
            "v5.101.3",
            "v5.101.2",
            "v5.101.1",
            "v5.101.0",
            "v5.100.2",
            "v5.100.1",
            "v5.100.0",
            "v5.99.9",
            "v5.99.8",
            "v5.99.7",
            "v5.99.6",
            "v5.99.5",
            "v5.99.4",
            "v5.99.3",
            "v5.99.2",
            "v5.99.1",
            "v5.99.0",
            "v5.97.1",
            "v5.97.0",
            "v5.96.1",
            "v5.96.0",
            "v5.95.0",
            "v5.94.0",
            "v5.93.0",
            "v5.92.1",
            "v5.92.0",
            "v5.91.0",
            "v5.90.3",
            "v5.90.2",
            "v5.90.1",
            "v5.90.0",
            "v5.89.0",
            "v5.88.2",
            "v5.88.1",
            "v5.88.0",
            "v5.87.0",
            "v5.86.0",
            "v5.85.1",
            "v5.85.0",
            "v5.84.1",
            "v5.84.0",
            "v5.83.1",
            "v5.83.0",
            "v5.82.1",
            "v5.82.0",
            "v5.81.0",
            "v5.80.0",
            "v5.79.0",
            "v5.78.0",
            "v5.77.0",
            "v5.76.3",
            "v5.76.2",
            "v5.76.1",
            "v5.61.0",
            "v5.76.0",
            "v5.75.0",
            "v5.74.0",
            "v5.73.0",
            "v5.72.1",
            "v5.72.0",
            "v5.71.0",
            "v5.70.0",
            "v5.69.1",
            "v5.69.0",
            "v5.68.0",
            "v5.67.0",
            "v5.66.0",
            "v5.65.0",
            "v5.64.4",
            "v5.64.3",
            "v5.64.2",
            "v5.64.1",
            "v5.64.0",
            "v5.63.0",
            "v5.62.2",
            "v5.62.0",
            "v5.62.1",
            "v5.60.0",
            "v5.59.1",
            "v5.59.0",
            "v5.58.2",
            "v5.58.1",
            "v5.58.0",
            "v5.57.1",
            "v5.57.0",
            "v5.56.1",
            "v5.56.0",
            "v5.55.1",
            "v5.55.0",
            "v5.54.0",
            "v5.53.0",
            "v5.52.1",
            "v5.52.0",
            "v5.51.2",
            "v5.51.1",
            "v5.51.0",
            "v5.50.0",
            "v5.49.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68458.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.625422607Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68458.json",
        "https://github.com/webpack/webpack/security/advisories/GHSA-8fgc-7cc6-rx7x",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68458"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68458.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68458",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513699,
  "published_at": "2026-02-05T23:08:01.102+00:00"
}