CVE-2023-2307: @builder.io/qwik city @builder.io/qwik-city Cross-Site Request Forgery Vulnerability Vulnerability
MODERATECVE-2023-2307 is a MODERATE (CVSS 4.7) @builder.io/qwik-city cross-site request forgery vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting @builder.io/qwik city libraries in the npm ecosystem. The issue involves @builder.io/qwik-city cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 0.104.0.
CVE-2023-2307 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N).
How to Fix CVE-2023-2307
To remediate this vulnerability, upgrade all affected @builder.io/qwik city 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 @builder.io/qwik-city@0.104.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @builder.io/qwik-city
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-2307, inspect your project dependencies using npm:
npm ls @builder.io/qwik-city
Analyze the terminal output to locate any version of @builder.io/qwik city in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.104.0), your application is affected.
Note: The npm ls @builder.io/qwik-city 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In @builder.io/qwik city, 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-2307 Affected @builder.io/qwik city Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@builder.io/qwik-city
|
npm |
< 0.104.0
|
0.104.0
|
References
Frequently Asked Questions
What is CVE-2023-2307?
Which @builder.io/qwik city versions are affected?
What version fixes CVE-2023-2307?
Is @builder.io/qwik-city affected?
What is the CVSS score of CVE-2023-2307?
What CWE is associated with CVE-2023-2307?
How can I check npm dependencies for CVE-2023-2307?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c54w-7j5f-xg98",
"modified" : "2023-10-10T21:26:31Z",
"published" : "2023-04-26T18:30:21Z",
"aliases" : [ "CVE-2023-2307" ],
"summary" : "@builder.io/qwik-city Cross-Site Request Forgery vulnerability",
"details" : "Cross-Site Request Forgery (CSRF) in GitHub repository builderio/qwik prior to 0.104.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@builder.io/qwik-city"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.104.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2307"
}, {
"type" : "WEB",
"url" : "https://github.com/BuilderIO/qwik/pull/3862/commits/09190b70027354baf7ad3d208df9c05a87f75f57"
}, {
"type" : "WEB",
"url" : "https://github.com/BuilderIO/qwik/commit/f434d335277418f5bd8dd90fae5cb089e1230cb8"
}, {
"type" : "WEB",
"url" : "https://github.com/BuilderIO/qwik/releases/tag/v0.104.0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/builderio/qwik"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/204ea12e-9e5c-4166-bf0e-fd49c8836917"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-10T21:26:31Z",
"nvd_published_at" : "2023-04-26T17:15:11Z"
}
}