-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency eta to v2 [security] #562
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Job #1411: Bundle Size — 2.36MiB (0%).Metrics (1 change)
Total size by type (no changes)
View job #1411 report View refs/pull/562/merge branch activity |
2 failed tests on run #1941 ↗︎
Details:
home/header.spec.ts • 1 failed test • Cypress Actions
dashboard/project.spec.ts • 1 failed test • Cypress Actions
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
e9b5b2f
to
f85eade
Compare
f85eade
to
c484706
Compare
c484706
to
9808356
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 1.14% | 6/525 |
🔴 | Branches | 0% | 0/101 |
🔴 | Functions | 1.25% | 1/80 |
🔴 | Lines | 1.28% | 6/468 |
Test suite run failed
Failed tests: 0/1. Failed suites: 1/2.
● Test suite failed to run
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
Here's what you can do:
• If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
• If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
For information about custom transformations, see:
https://jestjs.io/docs/code-transformation
Details:
/home/runner/work/chirpy/chirpy/node_modules/.pnpm/[email protected]/node_modules/github-slugger/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { regex } from './regex.js'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Runtime.createScriptFromCode (../../node_modules/.pnpm/[email protected]/node_modules/jest-runtime/build/index.js:1496:14)
at Object.<anonymous> (src/server/common/constants.ts:371:66)
at Object.<anonymous> (src/server/mdx/files.ts:1127:27)
at Object.<anonymous> (src/server/mdx/__tests__/files.test.ts:23:16)
Report generated by 🧪jest coverage report action from 8211e74
9808356
to
9c1902e
Compare
9c1902e
to
0cdc598
Compare
0cdc598
to
8211e74
Compare
8211e74
to
b541e01
Compare
b541e01
to
eb95fa9
Compare
eb95fa9
to
73e7955
Compare
73e7955
to
539c2b2
Compare
539c2b2
to
550de82
Compare
550de82
to
524f31b
Compare
524f31b
to
87fc7b2
Compare
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 becomes conflicted, 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.