File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ gem : yard
3+ ghsa : 3jfp-46x4-xgfj
4+ url : https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj
5+ title : yard - Possible arbitrary path traversal and file access via yard server
6+ date : 2026-04-17
7+ description : |
8+ ### Impact
9+
10+ A path traversal vulnerability was discovered in YARD <= 0.9.41 when
11+ using yard server to serve documentation. This bug would allow
12+ unsanitized HTTP requests to access arbitrary files on the machine
13+ of a yard server host under certain conditions.
14+
15+ The original patch in [GHSA-xfhh-rx56-rxcr](https://github.com/lsegal/yard/security/advisories/GHSA-xfhh-rx56-rxcr)
16+ was incorrectly applied.
17+
18+ ### Patches
19+
20+ Please upgrade to YARD v0.9.42 immediately if you are relying on yard
21+ server to host documentation in any untrusted environments without
22+ WEBrick and rely on `--docroot`.
23+
24+ ### Workarounds
25+
26+ For users who cannot upgrade, it is possible to perform path sanitization
27+ of HTTP requests at your webserver level. WEBrick, for example, can
28+ perform such sanitization by default (which you can use via yard
29+ server -s webrick), as can certain rules in your webserver configuration.
30+ patched_versions :
31+ - " >= 0.9.42"
32+ related :
33+ url :
34+ - https://my.diffend.io/gems/yard/0.9.41/0.9.42
35+ - https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj
36+ - https://github.com/lsegal/yard/security/advisories/GHSA-xfhh-rx56-rxcr
37+ - https://github.com/advisories/GHSA-3jfp-46x4-xgfj
You can’t perform that action at this time.
0 commit comments