Skip to content

[Autofix] Pin handlebars to 4.7.9 to fix critical prototype pollution and injectio…#7

Open
vardior9 wants to merge 1 commit into
mainfrom
autofix/f82026794280a7d186a141755fc665d0
Open

[Autofix] Pin handlebars to 4.7.9 to fix critical prototype pollution and injectio…#7
vardior9 wants to merge 1 commit into
mainfrom
autofix/f82026794280a7d186a141755fc665d0

Conversation

@vardior9

Copy link
Copy Markdown
Member

✅ Fixed

  • OSS · View in Apiiro

    • Summary:
      Added a Yarn resolution to pin the transitive dependency handlebars from 4.7.8 to 4.7.9, resolving 8 vulnerabilities including a critical JavaScript injection via AST type confusion (CVE-2026-33937, CVSS 9.8).

    • What Changed:
      Added "handlebars": "4.7.9" to the resolutions field in the workspace-level workspaces/apiiro/package.json. This forces Yarn to resolve all instances of handlebars (transitively pulled in via @backstage/cli) to the fixed version 4.7.9. The lockfile was regenerated and the diff touches only the handlebars entry (version, resolution specifier, and checksum).

    • Why This Fix:
      Handlebars 4.7.8 has 8 known vulnerabilities (CVE-2026-33937 critical CVSS 9.8, plus several high/medium/low). The overlay's transitiveRemediation lists SubDependencyPinning to 4.7.9 as a valid strategy. Since handlebars is a transitive dependency of @backstage/cli and not directly declared, a Yarn resolutions pin is the scoped, minimal approach — it upgrades only the vulnerable package without bumping the parent @backstage/cli. The dependencies of handlebars 4.7.9 are identical to 4.7.8 (same minimist, neo-async, source-map, wordwrap, uglify-js), so no other lockfile entries changed.

    • Files Changed:

      • workspaces/apiiro/package.json
      • workspaces/apiiro/yarn.lock
    • Potential Impact:
      Minimal. The lockfile diff changes exactly one package (handlebars 4.7.8 → 4.7.9) with no other transitive changes. Handlebars 4.7.9 is a patch release that fixes security issues while maintaining API compatibility. No application code changes are needed.


About Apiiro Autofix

This PR was automatically generated by Apiiro Autofix. Review all changes carefully before merging and run your test suite to verify no regressions.

@vardior9 vardior9 added the apiiro-autofix Pull requests generated by Apiiro Autofix label Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apiiro-autofix Pull requests generated by Apiiro Autofix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant