Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update git command executions - #143

Merged
axelniklasson merged 1 commit into
mainfrom
axelniklasson/investigate-sec-1502
Sep 15, 2026
Merged

axelniklasson merged 1 commit into
mainfrom
axelniklasson/investigate-sec-1502

Conversation

@axelniklasson

@axelniklasson axelniklasson commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Release commit metadata could execute shell commands during baseline and rollback checks (SEC-1502).
Replace all runtime execSync calls with execFileSync argument arrays, reject malformed SHAs before Git checks or fetching, and add option separators to prevent refs and remote names from being interpreted as Git options.
Extend git.test.ts with regression coverage for shell payloads, poisoned release metadata, fetch option injection, and valid SHAs.

Validation: full suite passed (460 tests), followed by 130 affected tests after the final ref hardening; typecheck, lint, formatting, and build passed.

Towards SEC-1502

@linear-code

linear-code Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

SEC-1502

@axelniklasson axelniklasson changed the title Prevent command injection in Git helpers Update git command executions Sep 15, 2026
@axelniklasson
axelniklasson merged commit 2a34c29 into main Sep 15, 2026
11 checks passed
@axelniklasson
axelniklasson deleted the axelniklasson/investigate-sec-1502 branch September 15, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants