Togoder security

npm package security report

handlebars npm package 4.7.9: is it safe?

Medium: risky but common patterns, not malware.

Needs review Version 4.7.9 Files reviewed 105 Size 2.4 MB Scanned

Summary

Togoder Security scanned the npm package handlebars@4.7.9 on Nov 2, 2026. An AI review of 105 source files produced 11 medium, 5 low severity findings. The overall verdict is medium: the findings flag risky but common patterns that the package's purpose explains (dynamic code, telemetry, native installers, broad file or network access), not malware.

0
critical
0
high
11
medium
5
low

Findings 16

Login to view the findings

What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.

Files reviewed

FileVerdictResult
dist/amd/handlebars/compiler/code-gen.js medium 2 findings
dist/amd/handlebars/compiler/javascript-compiler.js medium 1 finding
dist/cjs/handlebars/compiler/javascript-compiler.js medium 2 findings
dist/handlebars.amd.js medium 3 findings
dist/handlebars.js medium 4 findings
lib/handlebars/compiler/javascript-compiler.js medium 1 finding
dist/cjs/handlebars/compiler/parser.js low 1 finding
dist/handlebars.runtime.amd.js low 1 finding
lib/handlebars/compiler/code-gen.js low 1 finding
bin/.eslintrc.js safe Clear
dist/amd/handlebars.js safe Clear
dist/amd/handlebars.runtime.js safe Clear
dist/amd/handlebars/base.js safe Clear
dist/amd/handlebars/compiler/ast.js safe Clear
dist/amd/handlebars/compiler/base.js safe Clear
dist/amd/handlebars/compiler/compiler.js safe Clear
dist/amd/handlebars/compiler/helpers.js safe Clear
dist/amd/handlebars/compiler/parser.js safe Clear
dist/amd/handlebars/compiler/printer.js safe Clear
dist/amd/handlebars/compiler/visitor.js safe Clear
dist/amd/handlebars/compiler/whitespace-control.js safe Clear
dist/amd/handlebars/decorators.js safe Clear
dist/amd/handlebars/decorators/inline.js safe Clear
dist/amd/handlebars/exception.js safe Clear
dist/amd/handlebars/helpers.js safe Clear
Show 80 more files
FileVerdictResult
dist/amd/handlebars/helpers/block-helper-missing.js safe Clear
dist/amd/handlebars/helpers/each.js safe Clear
dist/amd/handlebars/helpers/helper-missing.js safe Clear
dist/amd/handlebars/helpers/if.js safe Clear
dist/amd/handlebars/helpers/log.js safe Clear
dist/amd/handlebars/helpers/lookup.js safe Clear
dist/amd/handlebars/helpers/with.js safe Clear
dist/amd/handlebars/internal/proto-access.js safe Clear
dist/amd/handlebars/internal/wrapHelper.js safe Clear
dist/amd/handlebars/logger.js safe Clear
dist/amd/handlebars/no-conflict.js safe Clear
dist/amd/handlebars/runtime.js safe Clear
dist/amd/handlebars/safe-string.js safe Clear
dist/amd/handlebars/utils.js safe Clear
dist/amd/precompiler.js safe Clear
dist/cjs/handlebars.js safe Clear
dist/cjs/handlebars.runtime.js safe Clear
dist/cjs/handlebars/base.js safe Clear
dist/cjs/handlebars/compiler/ast.js safe Clear
dist/cjs/handlebars/compiler/base.js safe Clear
dist/cjs/handlebars/compiler/code-gen.js safe Clear
dist/cjs/handlebars/compiler/compiler.js safe Clear
dist/cjs/handlebars/compiler/helpers.js safe Clear
dist/cjs/handlebars/compiler/printer.js safe Clear
dist/cjs/handlebars/compiler/visitor.js safe Clear
dist/cjs/handlebars/compiler/whitespace-control.js safe Clear
dist/cjs/handlebars/decorators.js safe Clear
dist/cjs/handlebars/decorators/inline.js safe Clear
dist/cjs/handlebars/exception.js safe Clear
dist/cjs/handlebars/helpers.js safe Clear
dist/cjs/handlebars/helpers/block-helper-missing.js safe Clear
dist/cjs/handlebars/helpers/each.js safe Clear
dist/cjs/handlebars/helpers/helper-missing.js safe Clear
dist/cjs/handlebars/helpers/if.js safe Clear
dist/cjs/handlebars/helpers/log.js safe Clear
dist/cjs/handlebars/helpers/lookup.js safe Clear
dist/cjs/handlebars/helpers/with.js safe Clear
dist/cjs/handlebars/internal/proto-access.js safe Clear
dist/cjs/handlebars/internal/wrapHelper.js safe Clear
dist/cjs/handlebars/logger.js safe Clear
dist/cjs/handlebars/no-conflict.js safe Clear
dist/cjs/handlebars/runtime.js safe Clear
dist/cjs/handlebars/safe-string.js safe Clear
dist/cjs/handlebars/utils.js safe Clear
dist/cjs/precompiler.js safe Clear
dist/handlebars.runtime.js safe Clear
lib/.eslintrc.js safe Clear
lib/handlebars.js safe Clear
lib/handlebars.runtime.js safe Clear
lib/handlebars/base.js safe Clear
lib/handlebars/compiler/ast.js safe Clear
lib/handlebars/compiler/base.js safe Clear
lib/handlebars/compiler/compiler.js safe Clear
lib/handlebars/compiler/helpers.js safe Clear
lib/handlebars/compiler/parser.js safe Clear
lib/handlebars/compiler/printer.js safe Clear
lib/handlebars/compiler/visitor.js safe Clear
lib/handlebars/compiler/whitespace-control.js safe Clear
lib/handlebars/decorators.js safe Clear
lib/handlebars/decorators/inline.js safe Clear
lib/handlebars/exception.js safe Clear
lib/handlebars/helpers.js safe Clear
lib/handlebars/helpers/block-helper-missing.js safe Clear
lib/handlebars/helpers/each.js safe Clear
lib/handlebars/helpers/helper-missing.js safe Clear
lib/handlebars/helpers/if.js safe Clear
lib/handlebars/helpers/log.js safe Clear
lib/handlebars/helpers/lookup.js safe Clear
lib/handlebars/helpers/with.js safe Clear
lib/handlebars/internal/proto-access.js safe Clear
lib/handlebars/internal/wrapHelper.js safe Clear
lib/handlebars/logger.js safe Clear
lib/handlebars/no-conflict.js safe Clear
lib/handlebars/runtime.js safe Clear
lib/handlebars/safe-string.js safe Clear
lib/handlebars/utils.js safe Clear
lib/index.js safe Clear
lib/precompiler.js safe Clear
package.json safe Clear
runtime.js safe Clear

Affected version ranges

None of the 2 scanned versions of handlebars are flagged high or critical. The latest scanned version, 4.7.9, is medium risk. Only versions we have scanned are listed; unscanned versions between them are not covered.

4.7.84.7.9
VersionsVerdictCountRangeTop findings
4.7.8 – 4.7.9 Needs review 2 >=4.7.8 <=4.7.9 Login to view

Full list, including published versions not scanned yet: version ranges API.

Scanned versions of handlebars

VersionVerdictFilesScanned
4.7.9 Needs review 105 Nov 2, 2026
4.7.8 Needs review 108 Nov 2, 2026

Frequently asked questions

Is handlebars safe to use?

No confirmed malware was found in handlebars@4.7.9, but the review flagged 11 medium, 5 low severity findings for risky patterns worth checking before you rely on it.

Does handlebars contain malware?

No malware was identified in handlebars@4.7.9 when Togoder Security scanned it on Nov 2, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.

How was handlebars checked?

Togoder Security downloaded the published npm package and had an AI model read its 105 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.

How do I scan handlebars together with the rest of my dependencies?

Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in handlebars@4.7.9, cost nothing.

Related security reports