CVE-2023-2583: Code Injection Vulnerability in jsreport

jsreport Updated 02 Oct 2025

Summary

08/05/2023
Yes i
Critical
10.0

CVE-2023-2583: jsreport vulnerable to code injection. Affects jsreport versions < 3.11.3. Fixed in 3.11.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jsreport is an npm package used for generating reports in various formats. It provides a playground server and a client for creating and rendering reports. The vulnerability in jsreport (prior to version 3.11.3) is related to a hardcoded version of vm2 (CVE-2023-29017) in the package.json of the jsreport-core component. This vulnerability allows an attacker to perform code injection attacks, potentially gaining unauthorized access to the jsreport playground server or executing malicious code on the client-side.

Vulnerability Detail

The code injection vulnerability in jsreport allows an attacker to exploit the vulnerable version of vm2 (CVE-2023-29017) to execute arbitrary code. This can lead to unauthorized access to the jsreport playground server or the ability to construct malicious webpages or HTML files that, when opened by a user, can execute code on the installed jsreport client. The impact of this vulnerability can be severe, as it allows an attacker to gain control over the affected system and potentially perform further malicious activities.

How To Fix

Minimum fixed version

3.11.3

This is the first release that contains the fix.

npm install jsreport@3.11.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update jsreport to the fixed version as soon as possible to protect against potential attacks.

Conclusion

The code injection vulnerability in jsreport (CVE-2023-2583) poses a significant risk to systems using vulnerable versions of jsreport. It is crucial to update to version 3.11.3 or later to mitigate the risk of unauthorized access and code execution. For further support and information on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for jsreport →

Share this vulnerability

FAQ

jsreport is an npm package used for generating reports in various formats. It provides a playground server and a client for creating and rendering reports.

The vulnerability allows an attacker to execute arbitrary code, potentially gaining unauthorized access to the jsreport playground server or executing malicious code on the client-side.

To fix this vulnerability, update jsreport to version 3.11.3 or later, which includes a fixed version of vm2.

No, there is no known workaround. It is crucial to update jsreport to the fixed version.

For more information and support on vulnerability remediation, you can contact info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for jsreport.

How To Fix

Minimum fixed version

3.11.3

This is the first release that contains the fix.

npm install jsreport@3.11.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback