Skip to content

[Security] [GHSA-2w6w-674q-4c4q] CRITICAL: JavaScript Injection in handlebars (CVSS 9.8) #1489

@github-actions

Description

@github-actions

Security Vulnerability Report

Summary

Vulnerability Details

handlebars@4.7.8 (via ts-jest) contains multiple HIGH/CRITICAL vulnerabilities:

  1. GHSA-2w6w-674q-4c4q (CRITICAL, CVSS 9.8): JavaScript Injection via AST Type Confusion — allows arbitrary code execution through template compilation
  2. GHSA-xjpj-3mr7-gcpf (HIGH, CVSS 8.3): JavaScript Injection in CLI Precompiler via Unescaped Names and Options
  3. GHSA-xhpv-hc6g-r9c6 (HIGH, CVSS 8.1): JavaScript Injection via AST Type Confusion when passing an object as dynamic partial
  4. GHSA-9cx6-37pm-9jff (HIGH, CVSS 7.5): Denial of Service via Malformed Decorator Syntax in Template Compilation
  5. GHSA-3mfm-83xf-c92r (HIGH, CVSS 8.1): JavaScript Injection via AST Type Confusion by tampering @partial-block

Impact on gh-aw-firewall

handlebars is a devDependency used only by ts-jest (test runner). It is not included in the production bundle shipped to users, and is not present in any Docker container images. The practical risk to end users is low, but the vulnerability should be patched to keep CI environments secure and to avoid false positives in security scans.

Remediation Steps

  1. Recommended Fix: Update handlebars to 4.7.9 via npm audit fix
  2. Command: npm audit fix
  3. Status: ✅ Fixed in PR — handlebars updated from 4.7.84.7.9 and brace-expansion from 5.0.45.0.5 (moderate DoS fix)

Testing Required

  • All tests pass after update (3 pre-existing failures unrelated to this change)
  • No breaking changes detected
  • npm audit reports 0 vulnerabilities after fix

References

Detection Details

  • Detected by: Dependency Security Monitor Workflow
  • Detection Time: 2026-03-29T01:00:09Z
  • Source: npm audit

Generated by Dependency Security Monitor ·

  • expires on Apr 28, 2026, 1:03 AM UTC

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency filesecurity

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions