Recientemente, me enfrento a la siguiente vulnerabilidad en mi escaneo de seguridad
Resultados del escaneo de seguridad
Explanation: The `lodash` package is vulnerable to Command Injection. The `template` function in the `lodash.js` and `template.js` files does not properly ensure the `variable` property of the `options` parameter to be a valid EcmaScript. An attacker can exploit this vulnerability by passing a template with malicious JavaScript in it to the affected function. This will result in Remote Code Execution.Nota: Esta vulnerabilidad se debe a una solución insuficiente para CVE-2021-23337.
Detección: La aplicación es vulnerable al usar este componente.
Recomendación: No existe una ruta de actualización no vulnerable para este componente/paquete. Recomendamos investigar componentes alternativos o un posible control de mitigación.
Cuando ejecuto la auditoría npm, veo que se trata de vulnerabilidades. Aunque, todos mis paquetes se actualizan en el archivo Package.Json, todavía recibo este error
Resultados de la auditoría del MNP:
{ High Command Injection in lodash Package loadash Patched in >=4.17.21 Dependency ofgrunt-maven-deploy [dev] Path grunt-maven-deploy > grunt > grunt-legacy-log > grunt-legacy-log-utils > lodash More info https://github.com/advisories/GHSA-35jh-r3h4-6jhm High Command Injection in lodash Patched in >=4.17.21 Dependency of grunt-maven-deploy [dev] Path grunt-maven-deploy > grunt > grunt-legacy-log > lodash More info https://github.com/advisories/GHSA-35jh-r3h4-6jhm } “Package.json” { “Grunt” : “1.4.1” “Grunt-cli”: “1.4.3” “Grunt-maven-deploy” :”0.2.1” “Grunt-run”: “0.8.1” “Grunt-tslint”: “5.0.2” }Alguien podría explicarme y ayudarme a resolver este problema
Gracias