fix(helm): Avoid forbidden chars in annotation#13772
Merged
mtesauro merged 1 commit intoDefectDojo:bugfixfrom Nov 29, 2025
Merged
fix(helm): Avoid forbidden chars in annotation#13772mtesauro merged 1 commit intoDefectDojo:bugfixfrom
mtesauro merged 1 commit intoDefectDojo:bugfixfrom
Conversation
Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
|
This pull request contains a command-injection risk in the GitHub Actions workflow (.github/workflows/test-helm-chart.yml): the PR title is incompletely sanitized before being used in a shell command, allowing an attacker to include metacharacters (e.g., ;, `, $, quotes, parentheses) in a title to execute arbitrary commands in the runner (e.g., "test; echo pwned").
Command Injection in
|
| Vulnerability | Command Injection |
|---|---|
| Description | The GitHub Actions workflow attempts to sanitize the pull request title before using it in a shell command. However, the sanitization is incomplete, as it does not remove critical shell metacharacters such as spaces, single quotes, double quotes, backslashes, dollar signs, parentheses, semicolons, or backticks. An attacker can craft a malicious pull request title containing these characters to inject arbitrary shell commands, which will be executed by the yq command within the GitHub Actions runner. For example, a title like test; echo pwned would execute echo pwned. |
django-DefectDojo/.github/workflows/test-helm-chart.yml
Lines 122 to 125 in 99e24c4
All finding details can be found in the DryRun Security Dashboard.
valentijnscholten
approved these changes
Nov 24, 2025
Maffooch
approved these changes
Nov 26, 2025
blakeaowens
approved these changes
Nov 28, 2025
Maffooch
pushed a commit
to valentijnscholten/django-DefectDojo
that referenced
this pull request
Feb 16, 2026
Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
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.
Fix GHA error in https://github.com/DefectDojo/django-DefectDojo/actions/runs/19437653457/job/55612682248?pr=13726