VDB
Sign up
HIGH7.5

GHSA-62gr-4qp9-h98f

Regular Expression Denial of Service in Handlebars

Quick fix

GHSA-62gr-4qp9-h98f — handlebars: upgrade to the fixed version with the command below.

npm install handlebars@4.4.5

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/handlebars
Introduced in: 4.0.0Fixed in: 4.4.5
Fixnpm install handlebars@4.4.5

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"]}'