HIGH8.8
GHSA-mf6x-hrgr-658f
Eta vulnerable to Code Injection via templates rendered with user-defined data
Quick fix
GHSA-mf6x-hrgr-658f — eta: upgrade to the fixed version with the command below.
npm install eta@2.0.0Details
Versions of the package eta before 2.0.0 are vulnerable to Remote Code Execution (RCE) by overwriting template engine configuration variables with view options received from The Express render API. **Note:** This is exploitable only for users who are rendering templates with user-defined data.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25967[ADVISORY]
- https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd[WEB]
- https://github.com/eta-dev/eta[PACKAGE]
- https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21[WEB]
- https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182[WEB]
- https://security.snyk.io/vuln/SNYK-JS-ETA-2936803[WEB]