fix(deps): update dependency nunjucks to v3.2.4 [security] #67
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.1
->3.2.4
GitHub 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.4
Compare Source
filter (including when this is done automatically with autoescape). Merge
of #1437.
v3.2.3
Compare Source
sort
filter;respect
throwOnUndefined
if sort attribute is undefined.base
arg toint
filter.chokidar
topeerDependencies
and mark itoptional
inpeerDependenciesMeta
.#1330; fixes
#1331. Thanks
ChenKS12138!
v3.2.2
Compare Source
select
andreject
filters.Merge of #1278 and
#1279; fixes
#282. Thanks
ogonkov!
TypeError: name.replace is not a function
.Fixes #1295.
groupby
filter;respect
throwOnUndefined
option, if the groupby attribute is undefined.Merge of #1276; fixes
#1198. Thanks
ogonkov!
rendering templates synchronously. Fixes
#1272.
indent
filter no longer appends an additional newline. Fixes#1231.
v3.2.1
Compare Source
#1253. Thanks
AlynxZhou.
^2.0.0
to^3.3.0
. Merge of#1254. Thanks
eklingen.
of #1250. Thanks
eklingen.
v3.2.0
Compare Source
NodeResolveLoader
,a Loader that loads templates using node's
require.resolve
.Fixes #1175.
Environment
instances, to allow runtime dependencytracking. Fixes #1153.
v3.1.7
Compare 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.6
Compare Source
No code changes; fixed npm packaging issue.
v3.1.4
Compare Source
v3.1.3
Compare Source
Add
forceescape
filter. 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.2
Compare Source
chokidar
an optional dependency again. Fixes#1073
npm install nunjucks
with the--no-bin-links
flag#1074
v3.1.0
Compare 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
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.