fix(deps): update dependency eta to v2 [security] #554
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.12.3
->2.0.0
GitHub Vulnerability Alerts
CVE-2023-23630
Impact
XSS attack - anyone using the Express API is impacted
Patches
The problem has been resolved. Users should upgrade to version 2.0.0.
Workarounds
Don't pass user supplied data directly to
res.renderFile
.References
Are there any links users can visit to find out more?
See https://github.com/eta-dev/eta/releases/tag/v2.0.0
CVE-2022-25967
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.
Release Notes
eta-dev/eta (eta)
v2.0.0
: Version 2.0.0Compare Source
TL;DR
This commit includes fixes for several security vulnerabilities. Specifically, in version 1, Eta merged the
data
parameter ofrenderFile()
intoconfig
-- meaning that malicious untrusted user data, passed through in a very specific way, could potentially modify the values ofvarName
,include
,includeFile
, anduseWith
, and thus insert arbitrary code into user template functions.With this release, such behavior is removed. Configuration cannot be passed through the
data
parameter toeta.renderFile()
.Most users will be able to update from version 1 to version 2 without changing any code. All users are encouraged to update as soon as possible.
Practical Implications
renderFile
explicitly, rather than merged with thedata
parameterapp.set()
to modifyviews
andview cache
will no longer change Eta's configuration ofviews
andcache
.views
andview cache
options under the hood, users should configure both Eta and Express with desired values (example below)settings["view options"]
propertyExample Code Changes
Commits
5651392
v1.14.2
: Version 1.14.2Compare Source
TL;DR
Commits
f9994ad
v1.14.1
: Version 1.14.1Compare Source
TL;DR
exports
andtype
fieldsCommits
403121c
308bfb4
d7c68b3
v1.14.0
: Version 1.14.0Compare Source
TL;DR
Commits
3442ceb
v1.13.0
: Version 1.13.0Compare Source
TL;DR
Commits
197eb04
c954bfe
1cae832
render
,renderAsync
,renderFile
andrenderFileAsync
(#199)242e9fc
7190909
fe26ba1
812825d
8c82f3c
9e22984
749b197
2eb2d9f
35a7d8d
4c23380
15fd2b9
064f776
60263b0
ff801ea
14aedfb
9c8e426
12005a5
912c2e3
5512169
663556c
1f1f321
b1026d3
aedaab7
34628da
d5e25ab
694976f
21234a1
f28b718
d469b4c
408d59c
0bdf07e
e1101a9
a0072e8
48d9857
304b9e2
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.