Update dependency handlebars to v4 [SECURITY]#11
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
b30bf21 to
2d540a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^3.0.3→^4.7.7^3.0.0→^4.7.7Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Prototype Pollution in handlebars
GHSA-q42p-pg8m-cqh6
More information
Details
Versions of
handlebarsprior to 4.0.14 are vulnerable to Prototype Pollution. Templates may alter an Objects' prototype, thus allowing an attacker to execute arbitrary code on the server.Recommendation
For handlebars 4.1.x upgrade to 4.1.2 or later.
For handlebars 4.0.x upgrade to 4.0.14 or later.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Arbitrary Code Execution in handlebars
GHSA-2cf5-4w76-r9qv
More information
Details
Versions of
handlebarsprior to 3.0.8 or 4.5.2 are vulnerable to Arbitrary Code Execution. The package's lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript in the system. It can be used to run arbitrary code in a server processing Handlebars templates or on a victim's browser (effectively serving as Cross-Site Scripting).The following template can be used to demonstrate the vulnerability:
Recommendation
Upgrade to version 3.0.8, 4.5.2 or later.
Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Arbitrary Code Execution in handlebars
GHSA-q2c6-c6pm-g3gh
More information
Details
Versions of
handlebarsprior to 3.0.8 or 4.5.3 are vulnerable to Arbitrary Code Execution. The package's lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript in the system. It is due to an incomplete fix for a previous issue. This vulnerability can be used to run arbitrary code in a server processing Handlebars templates or on a victim's browser (effectively serving as Cross-Site Scripting).Recommendation
Upgrade to version 3.0.8, 4.5.3 or later.
Severity
High
References
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Prototype Pollution in handlebars
GHSA-g9r4-xpmj-mj65
More information
Details
Versions of
handlebarsprior to 3.0.8 or 4.5.3 are vulnerable to prototype pollution. It is possible to add or modify properties to the Object prototype through a malicious template. This may allow attackers to crash the application or execute Arbitrary Code in specific conditions.Recommendation
Upgrade to version 3.0.8, 4.5.3 or later.
Severity
High
References
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Remote code execution in handlebars when compiling templates
CVE-2021-23369 / GHSA-f2jv-r9rf-7988
More information
Details
The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Arbitrary Code Execution in Handlebars
CVE-2019-20920 / GHSA-3cqr-58rm-57f8
More information
Details
Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Prototype Pollution in handlebars
CVE-2021-23383 / GHSA-765h-qjxv-5f44
More information
Details
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Denial of Service in handlebars
GHSA-f52g-6jhx-586p
More information
Details
Affected versions of
handlebarsare vulnerable to Denial of Service. The package's parser may be forced into an endless loop while processing specially-crafted templates. This may allow attackers to exhaust system resources leading to Denial of Service.Recommendation
Upgrade to version 4.4.5 or later.
Severity
Medium
References
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Regular Expression Denial of Service in Handlebars
CVE-2019-20922 / GHSA-62gr-4qp9-h98f
More information
Details
Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may be forced into an endless loop while processing crafted templates. This may allow attackers to exhaust system resources.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
handlebars-lang/handlebars.js (handlebars)
v4.7.7Compare Source
eb860c0b6d3de7f05897077825f83789a30(POSSIBLY) BREAKING CHANGES:
in when using the compile-option "strict: true". Access to prototype properties is forbidden completely by default, specific properties or methods
can be allowed via runtime-options. See #1633 for details. If you are using Handlebars as documented, you should not be accessing prototype properties
from your template anyway, so the changes should not be a problem for you. Only the use of undocumented features can break your build.
That is why we only bump the patch version despite mentioning breaking changes.
Commits
v4.7.6Compare Source
Chore/Housekeeping:
Compatibility notes:
Commits
v4.7.5Compare Source
Chore/Housekeeping:
Node.js version support has been changed to v6+Reverted in 4.7.6Compatibility notes:
Node.js < v6 is no longer supportedReverted in 4.7.6Commits
v4.7.4Compare Source
Chore/Housekeeping:
Compatibility notes:
Commits
v4.7.3Compare Source
Chore/Housekeeping:
d78cc73Bugfixes:
4de51fea32d05fCompatibility notes:
Commits
v4.7.2Compare Source
Bugfixes:
9d5aa36, #1639Chore/Build:
a4fd391Compatibility notes:
Commits
v4.7.1Compare Source
Bugfixes:
f152dfc3c1e252Compatibility notes:
Commits
v4.7.0Compare Source
Features:
7af1c12, #1635and no explicit configuration has taken place.
Compatibility notes:
Commits
v4.6.0Compare Source
Features:
d03b6ecBugfixes:
23d58e7Chores, docs:
d7f0dcf,187d611,d337f40c40d9f3,8901c28,e97685e,1f61f21164b7ff,1ebce2b14b621c,1ec1737,3a5b65e,dde108e,04b1984,587e7a3e913dc5,ac4655e,dc54952d1fb07bedcc84fBREAKING CHANGES:
access to prototype properties is forbidden completely by default,
specific properties or methods can be allowed via runtime-options.
See #1633 for details.
If you are using Handlebars as documented, you should not be accessing prototype
properties from your template anyway, so the changes should not be a problem
for you. Only the use of undocumented features can break your build.
That is why we only bump the minor version despite mentioning breaking changes.
Commits
v4.5.3Compare Source
Bugfixes:
f7f05d71988878Chores / Build:
c02b05fdeprecate old assertion-methods -
93e284e,886ba86,0817dad,93516a0Security:
__proto__,__defineGetter__,__defineSetter__and__lookupGetter__have been added to the list of "properties that must be enumerable".
If a property by that name is found and not enumerable on its parent,
it will silently evaluate to
undefined. This is done in both the compiled template and the "lookup"-helper.This will prevent new Remote-Code-Execution exploits that have been
published recently.
Compatibility notes:
__proto__,__defineGetter__,__defineSetter__and__lookupGetter__in the respect that those expression now returnundefinedrather than their actual value from the proto.increase the patch-version, because the incompatible use-cases
are not intended, undocumented and far less important than fixing
Remote-Code-Execution exploits on existing systems.
Commits
v4.5.2Compare Source
v4.5.1Compare Source
Bugfixs
5e9d17f(#1589)Compatibility notes:
Commits
v4.5.0Compare Source
Features / Improvements
62ed3c2feb60f8Bugfixes:
7fcf9d2Chore:
7052e88088e618Compatibility notes:
Commits
v4.4.5Compare Source
Bugfixes:
8d5530e, #1579Commits
v4.4.4Compare Source
Bugfixes:
f1752feChore:
0b593bfCompatibility notes:
Commits
v4.4.3Compare Source
Bugfixes
Typings:
0440af2Commits
v4.4.2Compare Source
b7eada0Commits
v4.4.1Compare Source
Commits
v4.4.0Compare Source
cf7545eCommits
v4.3.5Compare Source
Commits
v4.3.4Compare Source
ff4d827Compatibility notes:
Commits
v4.3.3Compare Source
8742bdeCommits
v4.3.2Compare Source
213c0bb, #1563Compatibility notes:
Commits
v4.3.1Compare Source
Fixes:
1266838, #156193444c5,64ecb9e, #1560Commits
v4.3.0Compare Source
Fixes:
2078c722078c72Features:
allowCallsToHelperMissingto allow callingblockHelperMissingandhelperMissing.Breaking changes:
Compatibility notes:
Compiler revision increased -
06b7224The increase was done because the "helperMissing" and "blockHelperMissing" are now moved from the helpers
to the internal "container.hooks" object, so old templates will not be able to call them anymore. We suggest
that you always recompile your templates with the latest compiler in your build pipelines.
Disallow calling "helperMissing" and "blockHelperMissing" directly -
2078c72{{blockHelperMissing}}wasnever intended and was part of the exploits that have been revealed early in 2019
(see #1495). It is also part of a new exploit that
is not captured by the earlier fix. In order to harden Handlebars against such exploits, calling thos helpers
is now not possible anymore. Overriding those helpers is still possible.
allowCallsToHelperMissingtotrueand thecalls will again be possible
Both bullet points imly that Handlebars is not 100% percent compatible to 4.2.0, despite the minor version bump.
We consider it more important to resolve a major security issue than to maintain 100% compatibility.
Commits
v4.2.2Compare Source
Commits
v4.2.1Compare Source
Bugfixes:
c55a7be, #1553Compatibility notes:
Commits
v4.2.0Compare Source
Chore/Test:
grunt-saucelabwith current sauce-connect proxy -f119497f9cce4da57b682Bugfixes:
knownHelpersdoesnt allow for custom helpers (@NickCis)Features:
Compatibility notes:
shows that it works, but if it doesn't please open an issue.
Commits
v4.1.2Compare Source
#1540 - added browser to package.json, resolves #1102 (@ouijan)
Compatibility notes:
Commits
v4.1.1Compare Source
Bugfixes:
5cedd62Refactorings:
048f2ce445ae12Compatibility notes:
Commits
v4.1.0Compare Source
New Features
27ac1eeSecurity fixes:
42841c4, #1495Housekeeping
bacd47378dd89c6b87c21Compatibility notes:
Access to class constructors (i.e.
({}).constructor) is now prohibited to preventRemote Code Execution. This means that following construct will no work anymore:
This kind of access is not the intended use of Handlebars and leads to the vulnerability described in #1495. We will not increase the major version, because such use is not intended or documented, and because of the potential impact of the issue (we fear that most people won't use a new major version and the issue may not be resolved on many systems).
Commits
v4.0.14Compare Source
v4.0.13Compare Source
v4.0.12Compare Source
New features:
Various dependency updates
d3d39427729aa973d5637)Bugfixes:
source-map-package should work better withrollup#1463Removed obsolete code:
0ddff8bfilesfield -69c6ca58947dd0Compatibility notes:
Commits
v4.0.11Compare Source
uglify-jsis unconditionally imported, but only listed as optional dependency (@Turbo87)21386b6Compatibility notes:
Commits
v4.0.10Compare Source
0e953d1Commits
v4.0.9Compare Source
cc554a5ed879a6node handlebars -a ...on Windows -2e21e2bbdfdbeab50ef036e6269f7378f85Compatibility notes:
Commits
v4.0.8Compare Source
a00c598Compatibility notes:
Commits
v4.0.7Compare Source
c8f4b57b61737563a8e0c5a164d001b0f65406f2eea023cb4c7dc353Commits
v4.0.6Compare Source
959ee55(originallydfc7554by @kpdecker)Configuration
📅 Schedule: (UTC)
🚦 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.