{"answers":{"affected":"2 open source packages ship an affected version, including uplot.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21489 exists.","fix":"Upgrade uplot to 1.6.31 or later.","what":"CVE-2024-21489 is a high-severity vulnerability in org.webjars.npm:uplot, published on 1 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21489 and fix it if it is affected.\n\nWhat it is: CVE-2024-21489 is a high-severity vulnerability in org.webjars.npm:uplot, published on 1 Oct 2024. 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-2024-21489 exists.\n\nAffected packages and fixed versions:\n- uplot (npm): affected all versions; fixed in 1.6.31\n- uplot (npm): affected all versions; fixed in 1.6.31\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-2024-21489/ (Markdown: https://insights.sbomify.com/CVE-2024-21489/index.md)","id":"CVE-2024-21489","markdown":"https://insights.sbomify.com/CVE-2024-21489/index.md","name":"CVE-2024-21489","record":{"aliases":["GHSA-34q8-jcq6-mc37","RHSA-2024:8083"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript charting library","requires_auth":"none","summary":"Prototype pollution in uPlot allows attackers to manipulate object prototypes, potentially leading to code execution or security bypasses.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"Versions of the package uplot before 1.6.31 are vulnerable to Prototype Pollution via the uplot.assign function due to missing check if the attribute resolves to the object prototype.","ecosystems":["Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_tus:8.4::appstream","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":"uPlot Prototype Pollution vulnerability","id":"CVE-2024-21489","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2024"},"n_packages":8,"n_references":4,"next":{"headline":"angular vulnerable to super-linear runtime due to backtracking","id":"CVE-2024-21490"},"packages":[{"ecosystem":"npm","fixed":["1.6.31"],"introduced":["0"],"last_affected":[],"package":"uplot","purl":null,"source":"GHSA-34q8-jcq6-mc37"},{"ecosystem":"npm","fixed":["1.6.31"],"introduced":["0"],"last_affected":[],"package":"uplot","purl":"pkg:npm/uplot","source":"GHSA-34q8-jcq6-mc37"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2024:8083"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2024:8083"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2024:8083"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2024:8083"},{"ecosystem":"Red Hat:rhel_tus:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2024:8083"},{"ecosystem":"Red Hat:rhel_tus:8.4::appstream","fixed":["0:7.3.6-7.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2024:8083"}],"prev":{"headline":"network Arbitrary Command Injection vulnerability","id":"CVE-2024-21488"},"products":["org.webjars.npm:uplot","uplot"],"published":"2024-10-01","related":[],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"partial"},"state":"PUBLISHED","updated":"2026-08-16","vendors":["n/a"]},"summary":"Prototype pollution in uPlot allows attackers to manipulate object prototypes, potentially leading to code execution or security bypasses.","url":"https://insights.sbomify.com/CVE-2024-21489/"}