Description
This affects the package total.js before 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.
Remediation
References
https://docs.totaljs.com/latest/en.html%23api~FrameworkUtils~U.set
https://snyk.io/vuln/SNYK-JS-TOTALJS-1046671
https://github.com/totaljs/framework/blob/master/utils.js%23L6606
https://github.com/totaljs/framework/blob/master/utils.js%23L6617
https://github.com/totaljs/framework/commit/b3f901561d66ab799a4a99279893b94cad7ae4ff
Related Vulnerabilities
CVE-2023-37943 Vulnerability in maven package org.jenkins-ci.plugins:active-directory
CVE-2007-5333 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2022-40764 Vulnerability in npm package snyk-go-plugin
CVE-2021-33041 Vulnerability in npm package vmd
CVE-2023-29522 Vulnerability in maven package org.xwiki.platform:xwiki-platform-xclass-ui