CVE-2024-37162: Zsa Generation Of Error Message Containing Vulnerability
MODERATECVE-2024-37162 is a MODERATE (CVSS 5.3) generation of error message containing vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Zsa libraries in the npm ecosystem. The issue involves generation of error message containing sensitive information in zsa. Remediation is available by upgrading affected packages to version 0.3.3.
CVE-2024-37162 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-2024-37162
To remediate this vulnerability, upgrade all affected Zsa 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 zsa@0.3.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls zsa
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-37162, inspect your project dependencies using npm:
npm ls zsa
Analyze the terminal output to locate any version of Zsa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.3), your application is affected.
Note: The npm ls zsa 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Zsa, 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-2024-37162 Affected Zsa Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zsa
|
npm |
< 0.3.3
|
0.3.3
|
References
Frequently Asked Questions
What is CVE-2024-37162?
Which Zsa versions are affected?
What version fixes CVE-2024-37162?
Is zsa affected?
What is the CVSS score of CVE-2024-37162?
What CWE is associated with CVE-2024-37162?
How can I check npm dependencies for CVE-2024-37162?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wjmj-h3xc-hxp8",
"modified" : "2024-10-31T22:24:07Z",
"published" : "2024-06-06T22:58:46Z",
"aliases" : [ "CVE-2024-37162" ],
"summary" : "Generation of Error Message Containing Sensitive Information in zsa",
"details" : "### Impact\nAll users are impacted. The zsa application transfers the parse error stack from the server to the client in production build mode. This can potentially reveal sensitive information about the server environment, such as the machine username and directory paths. An attacker could exploit this vulnerability to gain unauthorized access to sensitive server information. This information could be used to plan further attacks or gain a deeper understanding of the server infrastructure.\n\n### Patches\nYes, this has been pathed on `0.3.3`\n\n### Workarounds\nNo way to fix other than the patch.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "zsa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/IdoPesok/zsa/security/advisories/GHSA-wjmj-h3xc-hxp8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37162"
}, {
"type" : "WEB",
"url" : "https://github.com/IdoPesok/zsa/commit/86b86b282bde6780963f62406cc8bc65f2c86f3a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/IdoPesok/zsa"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-209" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-06T22:58:46Z",
"nvd_published_at" : "2024-06-07T15:15:50Z"
}
}