Skip to content

[Aikido] Prevent path traversal attacks in skill reference resolution - #2971

Open
aikido-autofix[bot] wants to merge 2 commits into
mainfrom
fix/aikido-security-code-audit-93654108-1owt
Open

[Aikido] Prevent path traversal attacks in skill reference resolution#2971
aikido-autofix[bot] wants to merge 2 commits into
mainfrom
fix/aikido-security-code-audit-93654108-1owt

Conversation

@aikido-autofix

Copy link
Copy Markdown

what

This patch addresses path traversal vulnerabilities in the skill marketplace installer by implementing strict validation of skill reference paths. The fix ensures that all reference paths are resolved relative to the skill directory and rejects absolute paths and parent directory traversal attempts (e.g., "../"). Changes were made to pkg/ai/skills/marketplace/installer.go to use a new resolveSkillReferencePath validation function, with comprehensive test coverage added in pkg/ai/skills/marketplace/installer_test.go to verify both valid relative paths and malicious traversal attempts are handled correctly.

why

references

…handling by validating reference paths remain within skill directory.
@aikido-autofix
aikido-autofix Bot requested a review from a team as a code owner August 20, 2026 22:10
@atmos-pro

atmos-pro Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@github-actions github-actions Bot added the size/m Medium size PR label Aug 20, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

@osterman Erik Osterman (Cloud Posse) (osterman) added the patch A minor, backward compatible change label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A minor, backward compatible change size/m Medium size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant