Skip to content

Commit 30ae988

Browse files
authored
Merge pull request #1038 from jasnow/ghsa-syncbot-2026-04-18-08_15_54
GHSA/SYNC: 1 brand new advisory
2 parents dec7521 + e610d3e commit 30ae988

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

gems/yard/GHSA-3jfp-46x4-xgfj.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)