Prototype pollution in total.js
There is a prototype pollution vulnerability in the package total.js before version 3.4.7. The set function can be used to set a value into the object according to the path. However the keys of the path being set are not properly sanitized, leading to a prototype pollution vulnerability. The impact depends on the application. In some cases it is possible to achieve Denial of service (DoS), Remote Code Execution or Property Injection.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | total.js | < 3.4.7 | 3.4.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-28495
- https://github.com/totaljs/framework/commit/b3f901561d66ab799a4a99279893b94cad7ae4ff
- https://docs.totaljs.com/latest/en.html%23api~FrameworkUtils~U.set
- https://github.com/totaljs/framework/blob/master/utils.js%23L6606
- https://github.com/totaljs/framework/blob/master/utils.js%23L6617
- https://snyk.io/vuln/SNYK-JS-TOTALJS-1046671
- https://www.npmjs.com/package/total.js
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-1321, CWE-400- Platform
- npm
- Package
total.js- Disclosed
- 05.02.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-6cf8-qhqj-vjqm - CC BY 4.0
Vulnerability history: total.js
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 02.2019 12.2021
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 4
- Medium 1
Disclosures per year
- 2019: 2
- 2020: 0
- 2021: 5
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.