Skip to content

ADFA-3255 | Fix high severity Snyk vulnerabilities#1070

Merged
jatezzz merged 3 commits intostagefrom
fix/ADFA-3255-snyk-high-vulnerabilities
Mar 13, 2026
Merged

ADFA-3255 | Fix high severity Snyk vulnerabilities#1070
jatezzz merged 3 commits intostagefrom
fix/ADFA-3255-snyk-high-vulnerabilities

Conversation

@jatezzz
Copy link
Collaborator

@jatezzz jatezzz commented Mar 12, 2026

Description

This PR addresses the 10 HIGH severity security problems recently reported by Snyk to prevent security regressions and maintain user trust.

To achieve this, the local test server (serve-static.js) was updated to include path resolution checks that strictly prevent directory traversal, HTML output escaping to mitigate XSS risks, and strict Content-Security-Policy (CSP) and nosniff headers. Additionally, a large number of outdated or unmaintained examples were removed from the llama.cpp subproject to drastically reduce the attack surface and eliminate flagged vulnerabilities within legacy code.

Details

  • Snyk scan will now report 0 HIGH severity problems.
  • Attempting to navigate outside the static directory bounds on the local dev server will correctly return a 403 Forbidden error.

No visual changes have been made to Code On the Go; we can only verify that the “Agent” continues to function perfectly.

document_5014844204682053344.mp4

Ticket

ADFA-3255

Observation

A significant portion of this patch involves the deletion of legacy example files in subprojects/llama.cpp/examples/. This cleanup is intentional as it removes unmaintained files that trigger static analysis alerts without providing core value to the current active project.

@jatezzz jatezzz requested a review from a team March 12, 2026 17:35
@jatezzz jatezzz requested a review from hal-eisen-adfa March 12, 2026 20:13
Copy link
Collaborator

@hal-eisen-adfa hal-eisen-adfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jatezzz added 2 commits March 13, 2026 13:32
Implement path traversal protection, XSS headers in local server, and clean up examples.
@jatezzz jatezzz force-pushed the fix/ADFA-3255-snyk-high-vulnerabilities branch from 79785b5 to 0676caf Compare March 13, 2026 18:32
@jatezzz jatezzz merged commit deafbbd into stage Mar 13, 2026
2 checks passed
@jatezzz jatezzz deleted the fix/ADFA-3255-snyk-high-vulnerabilities branch March 13, 2026 18: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