Skip to content

[GHSA-gpvj-q7fp-jcch] simplehttpserver allows directory traversal and file listing#7462

Open
Wenxin-Jiang wants to merge 1 commit intoWenxin-Jiang/advisory-improvement-7462from
Wenxin-Jiang-GHSA-gpvj-q7fp-jcch
Open

[GHSA-gpvj-q7fp-jcch] simplehttpserver allows directory traversal and file listing#7462
Wenxin-Jiang wants to merge 1 commit intoWenxin-Jiang/advisory-improvement-7462from
Wenxin-Jiang-GHSA-gpvj-q7fp-jcch

Conversation

@Wenxin-Jiang
Copy link
Copy Markdown

Updates

  • Affected products

Comments

  • simplehttpserver.js SHA256 is identical for 0.2.0 and 0.2.1 (8de441e8…); cli.js also identical.
  • The 0.1.1 → 0.2.0 diff adds the exact path-traversal guard: regex /(/|^)..(/|$)/ + path.relative(webroot, pathname) rejection, returning 404 for traversal attempts.
  • Therefore the fix shipped in 0.2.0; 0.2.1 contains no additional security change. Fixed version should be 0.2.0, and 0.2.0 should be marked not-affected against the "< 0.2.1" range.

@github-actions github-actions bot changed the base branch from main to Wenxin-Jiang/advisory-improvement-7462 April 20, 2026 16:18
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.

1 participant