HighGHSA-fw3x-2pr2-5j64CVE-2012-3521

GeSHi vulnerable to Directory Traversal

Published 17 May 2022 · Updated 14 Apr 2025

Is your project on an affected geshi/geshi?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

geshi/geshiComposer
Affected
<1.0.8.11
Fixed in
1.0.8.11
Update to the fixed version for your release line, for example:composer require geshi/geshi:^1.0.8.11

Details

Multiple directory traversal vulnerabilities in the cssgen contrib module in GeSHi before 1.0.8.11 allow remote attackers to read arbitrary files via a .. (dot dot) in the (1) geshi-path or (2) geshi-lang-path parameter.

Is GHSA-fw3x-2pr2-5j64 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected geshi/geshi, and gives you the command that fixes it.

More advisories for geshi/geshi

  • MediumCVE-2025-2123GeSHi XSS possible in the get_var function of /contrib/cssgen.php · 9 Mar 2025
  • MediumCVE-2012-3522GeSHi vulnerable to Cross-site Scripting · 17 May 2022
geshi/geshi security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.