Vulnerabilities in pkg:npm/jsreport
PACKAGECVE-2023-2583 is a CRITICAL (CVSS 10.0) jsreport vulnerable to code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Jsreport libraries in the npm ecosystem. The issue involves jsreport vulnerable to code injection. Remediation is available by upgrading affected packages to version 3.11.3.
pkg:npm/jsreport
Vulnerability advisories affecting package pkg:npm/jsreport. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g7rj-q722-245g | CVE-2023-2583 | CRITICAL | jsreport vulnerable to code injection |
| GHSA-5fjj-cfh2-ghc5 | CVE-2020-8128 | HIGH | Server-Side Request Forgery and Inclusion of Functionality from Untrusted Control Sphere in jsreport |
CVE-2023-2583 at a Glance
Security Impact
CVSS: 10.0
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:C/C:H/I:H/A:H).
How to Fix CVE-2023-2583
To remediate this vulnerability, upgrade all affected Jsreport 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 jsreport@3.11.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jsreport
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-2583, inspect your project dependencies using npm:
npm ls jsreport
Analyze the terminal output to locate any version of Jsreport in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.11.3), your application is affected.
Note: The npm ls jsreport 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Jsreport, 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-2583 Affected Jsreport Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsreport
|
npm |
< 3.11.3
|
3.11.3
|
References
Frequently Asked Questions
What is CVE-2023-2583?
Which Jsreport versions are affected?
What version fixes CVE-2023-2583?
Is jsreport affected?
What is the CVSS score of CVE-2023-2583?
What CWE is associated with CVE-2023-2583?
How can I check npm dependencies for CVE-2023-2583?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g7rj-q722-245g",
"modified" : "2023-05-15T13:43:15Z",
"published" : "2023-05-08T18:30:17Z",
"aliases" : [ "CVE-2023-2583" ],
"summary" : "jsreport vulnerable to code injection",
"details" : "jsreport prior to 3.11.3 had a version of vm2 vulnerable to CVE-2023-29017 hard coded in the package.json of the jsreport-core component. An attacker can use this vulnerability to obtain the authority of the jsreport playground server, or construct a malicious webpage/html file and send it to the user to attack the installed jsreport client.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jsreport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.11.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2583"
}, {
"type" : "WEB",
"url" : "https://github.com/jsreport/jsreport/commit/afaff3804b34b38e959f5ae65f9e672088de13d7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jsreport/jsreport"
}, {
"type" : "WEB",
"url" : "https://github.com/jsreport/jsreport/releases/tag/3.11.3"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/397ea68d-1e28-44ff-b830-c8883d067d96"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-09T19:16:18Z",
"nvd_published_at" : "2023-05-08T17:15:11Z"
}
}