CVE-2023-26108: @nestjs/core @nestjs/core Vulnerable To Information Exposure Vulnerability
MODERATECVE-2023-26108 is a MODERATE (CVSS 5.3) @nestjs/core vulnerable to information exposure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting @nestjs/core libraries in the npm ecosystem. The issue involves @nestjs/core vulnerable to information exposure via streamablefile pipe. Remediation is available by upgrading affected packages to version 9.0.5.
CVE-2023-26108 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2023-26108
To remediate this vulnerability, upgrade all affected @nestjs/core 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 @nestjs/core@9.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @nestjs/core
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-26108, inspect your project dependencies using npm:
npm ls @nestjs/core
Analyze the terminal output to locate any version of @nestjs/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.5), your application is affected.
Note: The npm ls @nestjs/core 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In @nestjs/core, 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-26108 Affected @nestjs/core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@nestjs/core
|
npm |
< 9.0.5
|
9.0.5
|
References
Frequently Asked Questions
What is CVE-2023-26108?
Which @nestjs/core versions are affected?
What version fixes CVE-2023-26108?
Is @nestjs/core affected?
What is the CVSS score of CVE-2023-26108?
What CWE is associated with CVE-2023-26108?
How can I check npm dependencies for CVE-2023-26108?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4jpv-8r57-pv7j",
"modified" : "2023-03-13T15:29:39Z",
"published" : "2023-03-06T06:30:18Z",
"aliases" : [ "CVE-2023-26108" ],
"summary" : "@nestjs/core vulnerable to Information Exposure via StreamableFile pipe",
"details" : "Versions of the package @nestjs/core before 9.0.5 are vulnerable to Information Exposure via the StreamableFile pipe. Exploiting this vulnerability is possible when the client cancels a request while it is streaming a StreamableFile, the stream wrapped by the StreamableFile will be kept open.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@nestjs/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26108"
}, {
"type" : "WEB",
"url" : "https://github.com/nestjs/nest/issues/9759"
}, {
"type" : "WEB",
"url" : "https://github.com/nestjs/nest/pull/9819"
}, {
"type" : "WEB",
"url" : "https://github.com/nestjs/nest/pull/9819/commits/f59cf5e81ca73bcdf1b5b36713550fd93918db41"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nestjs/nest"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-NESTJSCORE-2869127"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-08T00:10:01Z",
"nvd_published_at" : "2023-03-06T05:15:00Z"
}
}