Skip to content

fix: resolve 11 CodeQL path-injection alerts in Go CLI#411

Closed
Aureliolo wants to merge 2 commits into
mainfrom
fix/codeql-path-injection
Closed

fix: resolve 11 CodeQL path-injection alerts in Go CLI#411
Aureliolo wants to merge 2 commits into
mainfrom
fix/codeql-path-injection

fix: address 12 review findings from 6 reviewers

eee573b
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Mar 14, 2026 in 2s

11 new alerts including 11 high severity security vulnerabilities

New alerts in code changed by this pull request

Security Alerts:

  • 11 high

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 44 in cli/cmd/doctor.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 189 in cli/cmd/init.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.

Check failure on line 240 in cli/cmd/init.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a user-provided value.

Check failure on line 49 in cli/cmd/logs.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 38 in cli/cmd/start.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 44 in cli/cmd/status.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 34 in cli/cmd/stop.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 115 in cli/cmd/uninstall.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a user-provided value.
This path depends on a user-provided value.
This path depends on a user-provided value.

Check failure on line 49 in cli/internal/config/state.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a user-provided value.

Check failure on line 81 in cli/internal/config/state.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a user-provided value.

Check failure on line 88 in cli/internal/config/state.go

See this annotation in the file changed.

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
This path depends on a user-provided value.