[Autofix] Pin handlebars to 4.7.9 to fix critical prototype pollution and injectio…#7
Open
vardior9 wants to merge 1 commit into
Open
[Autofix] Pin handlebars to 4.7.9 to fix critical prototype pollution and injectio…#7vardior9 wants to merge 1 commit into
vardior9 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Fixed
OSS · View in Apiiro
Summary:
Added a Yarn resolution to pin the transitive dependency
handlebarsfrom 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 theresolutionsfield in the workspace-levelworkspaces/apiiro/package.json. This forces Yarn to resolve all instances ofhandlebars(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
transitiveRemediationlistsSubDependencyPinningto 4.7.9 as a valid strategy. Sincehandlebarsis a transitive dependency of@backstage/cliand not directly declared, a Yarnresolutionspin 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 (sameminimist,neo-async,source-map,wordwrap,uglify-js), so no other lockfile entries changed.Files Changed:
workspaces/apiiro/package.jsonworkspaces/apiiro/yarn.lockPotential 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.