CodeTanzania / emis

WIP
MIT License
3 stars 1 forks source link

chore(deps): update dependency handlebars to v4.7.8 [security] #817

Open renovate[bot] opened 2 hours ago

renovate[bot] commented 2 hours ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
handlebars (source) 4.7.7 -> 4.7.8 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2019-20920

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).

CVE-2021-23383

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.

GHSA-q42p-pg8m-cqh6

Versions of handlebars prior 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.

GHSA-2cf5-4w76-r9qv

Versions of handlebars prior 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.

GHSA-g9r4-xpmj-mj65

Versions of handlebars prior 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.

GHSA-q2c6-c6pm-g3gh

Versions of handlebars prior 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.

CVE-2021-23369

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.

CVE-2019-19919

Versions of handlebars prior to 3.0.8 or 4.3.0 are vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Objects' __proto__ and __defineGetter__ properties, which may allow an attacker to execute arbitrary code through crafted payloads.

Recommendation

Upgrade to version 3.0.8, 4.3.0 or later.


Release Notes

handlebars-lang/handlebars.js (handlebars) ### [`v4.7.8`](https://redirect.github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.8) [Compare Source](https://redirect.github.com/handlebars-lang/handlebars.js/compare/v4.7.7...v4.7.8) - Make library compatible with workers ([#​1894](https://redirect.github.com/handlebars-lang/handlebars.js/issues/1894)) - [`3d3796c`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/3d3796c) - Don't rely on Node.js global object ([#​1776](https://redirect.github.com/handlebars-lang/handlebars.js/issues/1776)) - [`2954e7e`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/2954e7e) - Fix compiling of each block params in strict mode ([#​1855](https://redirect.github.com/handlebars-lang/handlebars.js/issues/1855)) - [`30dbf04`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/30dbf04) - Fix rollup warning when importing Handlebars as ESM - [`03d387b`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/03d387b) - Fix bundler issue with webpack 5 ([#​1862](https://redirect.github.com/handlebars-lang/handlebars.js/issues/1862)) - [`c6c6bbb`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/c6c6bbb) - Use https instead of git for mustache submodule - [`88ac068`](https://redirect.github.com/handlebars-lang/handlebars.js/commit/88ac068) [Commits](https://redirect.github.com/handlebars-lang/handlebars.js/compare/v4.7.7...v4.7.8)

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

renovate[bot] commented 2 hours ago

⚠️ Artifact update problem

Renovate 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
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @lykmapipo/mongoose-connection@0.4.0
npm warn Found: mongoose@5.6.7
npm warn node_modules/mongoose
npm warn   mongoose@">=5.6.7" from the root project
npm warn   20 more (@codetanzania/emis-feature, @codetanzania/emis-role, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer mongoose@">=5.11.9" from @lykmapipo/mongoose-connection@0.4.0
npm warn node_modules/@lykmapipo/mongoose-connection
npm warn   @lykmapipo/mongoose-connection@">=0.4.0" from @lykmapipo/mongoose-test-helpers@0.8.6
npm warn   node_modules/@lykmapipo/mongoose-test-helpers
npm warn   1 more (@lykmapipo/mongoose-common)
npm warn
npm warn Conflicting peer dependency: mongoose@8.6.3
npm warn node_modules/mongoose
npm warn   peer mongoose@">=5.11.9" from @lykmapipo/mongoose-connection@0.4.0
npm warn   node_modules/@lykmapipo/mongoose-connection
npm warn     @lykmapipo/mongoose-connection@">=0.4.0" from @lykmapipo/mongoose-test-helpers@0.8.6
npm warn     node_modules/@lykmapipo/mongoose-test-helpers
npm warn     1 more (@lykmapipo/mongoose-common)
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @lykmapipo/mongoose-test-helpers@0.8.6
npm error Found: mongoose@5.6.7
npm error node_modules/mongoose
npm error   mongoose@">=5.6.7" from the root project
npm error   peer mongoose@">=5.6.0" from @codetanzania/emis-feature@1.4.3
npm error   node_modules/@codetanzania/emis-feature
npm error     @codetanzania/emis-feature@">=1.4.3" from the root project
npm error     @codetanzania/emis-feature@">=1.4.2" from @codetanzania/emis-stakeholder@1.9.0
npm error     node_modules/@codetanzania/emis-stakeholder
npm error       @codetanzania/emis-stakeholder@">=1.9.0" from the root project
npm error   19 more (@codetanzania/emis-role, ...)
npm error
npm error Could not resolve dependency:
npm error peer mongoose@">=5.11.9" from @lykmapipo/mongoose-test-helpers@0.8.6
npm error node_modules/@lykmapipo/mongoose-test-helpers
npm error   dev @lykmapipo/mongoose-test-helpers@"0.8.6" from the root project
npm error
npm error Conflicting peer dependency: mongoose@8.6.3
npm error node_modules/mongoose
npm error   peer mongoose@">=5.11.9" from @lykmapipo/mongoose-test-helpers@0.8.6
npm error   node_modules/@lykmapipo/mongoose-test-helpers
npm error     dev @lykmapipo/mongoose-test-helpers@"0.8.6" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-09-25T14_28_05_127Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-09-25T14_28_05_127Z-debug-0.log