{"answers":{"affected":"2 open source packages ship an affected version, including jsreport. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2583 exists.","fix":"Upgrade jsreport to 3.11.3 or later.","what":"CVE-2023-2583 is a critical code injection vulnerability in jsreport/jsreport, published on 8 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-2583 and fix it if it is affected.\n\nWhat it is: CVE-2023-2583 is a critical code injection vulnerability in jsreport/jsreport, published on 8 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2583 exists.\n\nAffected packages and fixed versions:\n- jsreport (npm): affected all versions; fixed in 3.11.3\n- jsreport (npm): affected all versions; fixed in 3.11.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-2583/ (Markdown: https://insights.sbomify.com/CVE-2023-2583/index.md)","id":"CVE-2023-2583","markdown":"https://insights.sbomify.com/CVE-2023-2583/index.md","name":"CVE-2023-2583","record":{"aliases":["GHSA-g7rj-q722-245g"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"jsreport reporting server","requires_auth":"none","summary":"An attacker can execute arbitrary code on the jsreport server due to improper neutralization of special elements used in code generation.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"jsreport","vendor":"jsreport"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Code Injection in GitHub repository jsreport/jsreport prior to 3.11.3.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Code Injection in jsreport/jsreport","id":"CVE-2023-2583","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"PixelYourSite \u003c= 9.3.6 and PixelYourSite Pro \u003c= 9.6.1 - Authenticated (Administrator+) Stored Cross-Site Scripting","id":"CVE-2023-2584"},"packages":[{"ecosystem":"npm","fixed":["3.11.3"],"introduced":["0"],"last_affected":[],"package":"jsreport","purl":null,"source":"GHSA-g7rj-q722-245g"},{"ecosystem":"npm","fixed":["3.11.3"],"introduced":["0"],"last_affected":[],"package":"jsreport","purl":"pkg:npm/jsreport","source":"GHSA-g7rj-q722-245g"}],"prev":{"headline":"Cross-site scripting in Strikingly","id":"CVE-2023-2582"},"products":["jsreport/jsreport"],"published":"2023-05-08","related":[{"cvss_score":9.8,"headline":"Server-Side Request Forgery and Inclusion of Functionality from Untrusted Control Sphere in jsreport","id":"CVE-2020-8128","kev_date_added":null,"published":"2020-02-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-28","vendors":["jsreport"]},"summary":"An attacker can execute arbitrary code on the jsreport server due to improper neutralization of special elements used in code generation.","url":"https://insights.sbomify.com/CVE-2023-2583/"}