Skip to content

Commit 8ef45ec

Browse files
flavorjonesRubySec CI
authored andcommitted
Updated advisory posts against rubysec/ruby-advisory-db@30ae988
1 parent a849cee commit 8ef45ec

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)