Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. uplot
  4. ›
  5. CVE-2024-21489

CVE-2024-21489: uPlot Prototype Pollution vulnerability

October 1, 2024

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.

References

  • github.com/advisories/GHSA-34q8-jcq6-mc37
  • github.com/leeoniya/uPlot
  • github.com/leeoniya/uPlot/blob/c52e5001c1d959a99ac495a53e4deca5c44464d2/src/utils.js
  • github.com/leeoniya/uPlot/commit/5756e3e9b91270b303157e14bd0174311047d983
  • nvd.nist.gov/vuln/detail/CVE-2024-21489
  • security.snyk.io/vuln/SNYK-JS-UPLOT-6209224

Code Behaviors & Features

Detect and mitigate CVE-2024-21489 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.31

Fixed versions

  • 1.6.31

Solution

Upgrade to version 1.6.31 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/uplot/CVE-2024-21489.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.