This repository was archived by the owner on Feb 2, 2026. It is now read-only.
Update dependency nunjucks to v3 [SECURITY]#3027
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency nunjucks to v3 [SECURITY]#3027renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
Author
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json |
1ac7d65 to
3328d32
Compare
3328d32 to
3404719
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
^2.5.2→^3.0.0GitHub Vulnerability Alerts
CVE-2023-2142
Impact
In Nunjucks versions prior to version 3.2.4, it was possible to bypass the restrictions which are provided by the autoescape functionality. If there are two user-controlled parameters on the same line used in the views, it was possible to inject cross site scripting payloads using the backslash
\character.Example
If the user-controlled parameters were used in the views similar to the following:
It is possible to inject XSS payload using the below parameters:
Patches
The issue was patched in version 3.2.4.
References
Release Notes
mozilla/nunjucks (nunjucks)
v3.2.4Compare Source
filter (including when this is done automatically with autoescape). Merge
of #1437.
v3.2.3Compare Source
sortfilter;respect
throwOnUndefinedif sort attribute is undefined.basearg tointfilter.chokidartopeerDependenciesand mark itoptionalinpeerDependenciesMeta.#1330; fixes
#1331. Thanks
ChenKS12138!
v3.2.2Compare Source
selectandrejectfilters.Merge of #1278 and
#1279; fixes
#282. Thanks
ogonkov!
TypeError: name.replace is not a function.Fixes #1295.
groupbyfilter;respect
throwOnUndefinedoption, if the groupby attribute is undefined.Merge of #1276; fixes
#1198. Thanks
ogonkov!
rendering templates synchronously. Fixes
#1272.
indentfilter no longer appends an additional newline. Fixes#1231.
v3.2.1Compare Source
#1253. Thanks
AlynxZhou.
^2.0.0to^3.3.0. Merge of#1254. Thanks
eklingen.
of #1250. Thanks
eklingen.
v3.2.0Compare Source
NodeResolveLoader,a Loader that loads templates using node's
require.resolve.Fixes #1175.
Environmentinstances, to allow runtime dependencytracking. Fixes #1153.
v3.1.7Compare Source
Fix bug where exceptions were silently swallowed with synchronous render.
Fixes #678,
#1116,
#1127, and
#1164
Removes deprecated postinstall-build package in favor of
npm prepare.
Merge of #1172.
Fixes #1167.
directly from github.
v3.1.6Compare Source
No code changes; fixed npm packaging issue.
v3.1.4Compare Source
v3.1.3Compare Source
Add
forceescapefilter. Fixes #782Fix regression that prevented template errors from reporting line and column number.
Fixes #1087 and
#1095.
Fix "Invalid type: Is" error for
{% if value is defined %}. Fixes#1110
Formally drop support for node v4 (the upgrade to babel 7 in 3.1.0 made the
build process incompatible with node < 6.9.0).
v3.1.2Compare Source
chokidaran optional dependency again. Fixes#1073
npm install nunjuckswith the--no-bin-linksflag#1074
v3.1.0Compare Source
Support nunjucks.installJinjaCompat() with slim build. Fixes
#1019
Fix calling render callback twice when a conditional import throws an error.
Solves #1029
Support objects created with Object.create(null). fixes #468
Support ESNext iterators, using Array.from. Merge of
#1058
v3.0.1Compare Source
Fix handling methods and attributes of static arrays, objects and primitives.
Solves the issue #937
Add support for python-style array slices with Jinja compat enabled.
Fixes #188; merge of
#976.
Fix call blocks having access to their parent scope. Fixes
#906; merge of
#994.
Fix a bug that caused capturing block tags (e.g. set/endset,
filter/endfilter) to write to the global buffer rather than capturing
their contents. Fixes
#914 and
#972; merge of
#990. Thanks Noah
Lange.
v3.0.0Compare Source
Allow including many templates without reaching recursion limits. Merge of
#787. Thanks Gleb Khudyakov.
Allow explicitly setting
null(akanone) as the value of a variable;don't ignore that value and look on up the frame stack or context. Fixes
#478. Thanks Jonny Gerig
Meyer for the report.
Execute blocks in a child frame that can't write to its parent. This means
that vars set inside blocks will not leak outside of the block, base
templates can no longer see vars set in templates that inherit them, and
super()can no longer set vars in its calling scope. Fixes the inheritanceportion of #561, which
fully closes that issue. Thanks legutierr for the report.
Prevent macros from seeing or affecting their calling scope. Merge of
#667.
Fix handling of macro arg with default value which shares a name with another
macro. Merge of #791.
Add support for the spaces parameter in the dump template filter.
Merge of #868.
Thanks Jesse Eikema
Add
verbatimas an alias ofrawfor compatibility with Twig.Merge of #874.
Add new
nl2brfilter. Thanks Marc-Aurèle DarcheAdd support for python's
list.appendwith Jinja compat enabled. ThanksConor Flannigan.
Add variables whitespace control.
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/London, 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.