netlify-cms-widgets
netlify-cms-widgets copied to clipboard
build(deps): [security] bump static-eval from 2.0.0 to 2.1.0
Bumps static-eval from 2.0.0 to 2.1.0. This update includes a security fix.
Vulnerabilities fixed
Sourced from The GitHub Security Advisory Database.
Sandbox Breakout / Arbitrary Code Execution in static-eval Versions of
static-evalprior to 2.0.2 pass untrusted user input directly to the global function constructor, resulting in an arbitrary code execution vulnerability when user input is parsed via the package.Proof of concept
var evaluate = require('static-eval'); var parse = require('esprima').parse;var src = process.argv[2]; var payload = '(function({x}){return x.constructor})({x:"".sub})("console.log(process.env)")()' var ast = parse(payload).body[0].expression; console.log(evaluate(ast, {x:1}));
Recommendation
Upgrade to version 2.0.2 or later.
Affected versions: <= 2.0.1
Release notes
Sourced from static-eval's releases.
v2.1.0
Add
allowAccessToMethodsOnFunctionsoption to restore 1.x behaviour so that cwise can upgrade. (@archmoj in #31)Do not use this option if you are not sure that you need it, as it had previously been removed for security reasons. There is a known exploit to execute arbitrary code. Only use it on trusted inputs, like the developer's JS files in a build system.
v2.0.5
- Fix function bodies being invoked during declaration. (@RoboPhred in #30)
v2.0.4
- Short-circuit evaluation in
&&and||expressions. (@RoboPhred in #28)- Start tracking changes.
v2.0.3
Disallows accessing
.constructorand.__proto__properties, which could be used to access theFunction()constructor. (browserify/static-eval#27) Thanks to an anonymous reporter!
Changelog
Sourced from static-eval's changelog.
2.1.0
Add
allowAccessToMethodsOnFunctionsoption to restore 1.x behaviour so that cwise can upgrade. (@archmoj in #31)Do not use this option if you are not sure that you need it, as it had previously been removed for security reasons. There is a known exploit to execute arbitrary code. Only use it on trusted inputs, like the developer's JS files in a build system.
2.0.5
- Fix function bodies being invoked during declaration. (@RoboPhred in #30)
2.0.4
- Short-circuit evaluation in
&&and||expressions. (@RoboPhred in #28)- Start tracking changes.
Commits
1a4d7342.1.0054adacci: add node 1409c4b83Merge pull request #31 from archmoj/allow-cwise-transforme619afcmake option to enable allowAccessToMethodsOnFunctions namely to be used by cw...36587c2remove trailing spaces798b0d5ci: add node 12 and 13b5ab0d72.0.5aa0eaebMerge pull request #30 from RoboPhred/fix-func-decl-invoke23bc6caMerge branch 'master' into fix-func-decl-invoke9d39dd5Update repository URL in package.json.- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by goto-bus-stop, a new releaser for static-eval since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)