CVE-2023-7078: Miniflare Miniflare Vulnerable To Server-Side Request Vulnerability
HIGHCVE-2023-7078 is a HIGH (CVSS 7.5) miniflare vulnerable to server-side request vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Miniflare libraries in the npm ecosystem. The issue involves miniflare vulnerable to server-side request forgery (ssrf). Remediation is available by upgrading affected packages to version 3.20231030.2.
CVE-2023-7078 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2023-7078
To remediate this vulnerability, upgrade all affected Miniflare dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install miniflare@3.20231030.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls miniflare
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-7078, inspect your project dependencies using npm:
npm ls miniflare
Analyze the terminal output to locate any version of Miniflare in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.20231030.2), your application is affected.
Note: The npm ls miniflare command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Miniflare, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-7078 Affected Miniflare Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
miniflare
|
npm |
≥ 3.20230821.0
< 3.20231030.2
|
3.20231030.2
|
References
Frequently Asked Questions
What is CVE-2023-7078?
Which Miniflare versions are affected?
What version fixes CVE-2023-7078?
Is miniflare affected?
What is the CVSS score of CVE-2023-7078?
What CWE is associated with CVE-2023-7078?
How can I check npm dependencies for CVE-2023-7078?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fwvg-2739-22v7",
"modified" : "2023-12-29T19:36:41Z",
"published" : "2023-12-29T19:36:41Z",
"aliases" : [ "CVE-2023-7078" ],
"summary" : "Miniflare vulnerable to Server-Side Request Forgery (SSRF)",
"details" : "### Impact\nSending specially crafted HTTP requests to Miniflare's server could result in arbitrary HTTP and WebSocket requests being sent from the server. If Miniflare was configured to listen on external network interfaces (as was the default in `wrangler` until `3.19.0`), an attacker on the local network could access other local servers.\n\n### Patches\nThe issue was fixed in `miniflare@3.20231030.2`.\n\n### Workarounds\nEnsure Miniflare is configured to listen on just local interfaces. This is the default behaviour, but can also be configured with the `host: \"127.0.0.1\"` option.\n\n### References\n- https://github.com/cloudflare/workers-sdk/pull/4532\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "miniflare"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.20230821.0"
}, {
"fixed" : "3.20231030.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-fwvg-2739-22v7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-7078"
}, {
"type" : "WEB",
"url" : "https://github.com/cloudflare/workers-sdk/pull/4532"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cloudflare/workers-sdk"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-29T19:36:41Z",
"nvd_published_at" : "2023-12-29T12:15:47Z"
}
}