fix: upgrade handlebars to 4.7.9, fix pre-push hook#1134
Merged
Conversation
Addresses all 6 open Dependabot alerts: - CVE-2026-33937 (critical): JS Injection via AST Type Confusion - CVE-2026-33941 (high): JS Injection in CLI Precompiler - CVE-2026-33940 (high): JS Injection via AST Type Confusion (dynamic partial) - CVE-2026-33939 (high): DoS via Malformed Decorator Syntax - CVE-2026-33938 (high): JS Injection via AST Type Confusion (@partial-block) - CVE-2026-33916 (medium): Prototype Pollution Leading to XSS
For new branches, compare against remote default branch instead of searching for release tags. The tag-based approach included commits already on origin/main, causing false positives for AI attribution.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
divmain
approved these changes
Mar 30, 2026
Contributor
Author
|
@cursor review |
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.
Summary
origin/maininstead of release tagsDependabot alerts resolved
Test plan
pnpm run checkpassesNote
Medium Risk
Moderate risk because it changes the mandatory
pre-pushenforcement range selection, which could block/allow pushes incorrectly if the remote default branch detection or shallow-clone fallback misbehaves; the dependency bump is low risk and security-motivated.Overview
Improves mandatory
pre-pushvalidation on new branches by switching the commit range baseline from “latestv*release tag” to the remote’s default branch (falling back tomain), with a guard/fallback when the remote ref isn’t available locally.Upgrades
handlebarsto4.7.9forpackages/package-builder, updatingpnpm-lock.yamlaccordingly.Written by Cursor Bugbot for commit b95e8f0. Configure here.