GitHub Advisory Database
GHSA-34q8-jcq6-mc37
uPlot Prototype Pollution vulnerability
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | uplot | All versions before 1.6.31 (fixed in 1.6.31) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21489
- https://github.com/leeoniya/uPlot/commit/5756e3e9b91270b303157e14bd0174311047d983
- https://github.com/leeoniya/uPlot
- https://github.com/leeoniya/uPlot/blob/c52e5001c1d959a99ac495a53e4deca5c44464d2/src/utils.js#L437-L452
- https://security.snyk.io/vuln/SNYK-JS-UPLOT-6209224