VDB
Sign up
HIGH

GHSA-g9r4-xpmj-mj65

Prototype Pollution in handlebars

Quick fix

GHSA-g9r4-xpmj-mj65 — handlebars: upgrade to the fixed version with the command below.

npm install handlebars@3.0.8

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/handlebars
Introduced in: 0Fixed in: 3.0.8
Fixnpm install handlebars@3.0.8
npm/handlebars
Introduced in: 4.0.0Fixed in: 4.5.3
Fixnpm install handlebars@4.5.3

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/handlebars"]}'