Ruby/yard/0.9.39


YARD is a documentation generation tool for the Ruby programming language.
It enables the user to generate consistent, usable documentation that can be
exported to a number of formats very easily, and also supports extending for
custom Ruby constructs such as custom class level definitions.

https://rubygems.org/gems/yard
MIT

1 Security Vulnerabilities

yard: Possible arbitrary path traversal and file access via yard server

Published date: 2026-04-17T22:21:03Z
CVE: CVE-2026-41493
Links:

Impact

A path traversal vulnerability was discovered in YARD <= 0.9.41 when using yard server to serve documentation. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions.

The original patch in GHSA-xfhh-rx56-rxcr was incorrectly applied.

Patches

Please upgrade to YARD v0.9.42 immediately if you are relying on yard server to host documentation in any untrusted environments without WEBrick and rely on --docroot.

Workarounds

For users who cannot upgrade, it is possible to perform path sanitization of HTTP requests at your webserver level. WEBrick, for example, can perform such sanitization by default (which you can use via yard server -s webrick), as can certain rules in your webserver configuration.

Affected versions: ["0.9.41", "0.9.40", "0.9.39", "0.9.38", "0.9.37", "0.9.36", "0.9.35", "0.9.34", "0.9.33", "0.9.32", "0.9.31", "0.9.30", "0.9.29", "0.9.28", "0.9.27", "0.9.26", "0.9.25", "0.9.24", "0.9.23", "0.9.22", "0.9.21", "0.9.20", "0.9.19", "0.9.18", "0.9.17", "0.9.16", "0.9.15", "0.9.14", "0.9.13", "0.9.12", "0.9.11", "0.9.10", "0.9.9", "0.9.8", "0.9.7", "0.9.6", "0.9.5", "0.9.4", "0.9.3", "0.9.2", "0.9.1", "0.9.0", "0.8.7.6", "0.8.7.5", "0.8.7.4", "0.8.7.3", "0.8.7.2", "0.8.7.1", "0.8.7", "0.8.6.2", "0.8.6.1", "0.8.6", "0.8.5.2", "0.8.5.1", "0.8.5", "0.8.4.1", "0.8.4", "0.8.3", "0.8.2.1", "0.8.2", "0.8.1", "0.8.0", "0.7.5", "0.7.4", "0.7.3", "0.7.2", "0.7.1", "0.7.0", "0.6.8", "0.6.7", "0.6.6", "0.6.5", "0.6.4", "0.6.3", "0.6.2", "0.6.1", "0.6.0", "0.5.8", "0.5.7", "0.5.6", "0.5.5", "0.5.4", "0.5.3", "0.5.2", "0.5.1", "0.5.0", "0.5.1p1", "0.4.0", "0.2.3.5", "0.2.3.4", "0.2.3.3", "0.2.3.2", "0.2.3", "0.2.2", "0.2.1", "0.2.0"]
Secure versions: [0.9.42, 0.9.43]
Recommendation: Update to version 0.9.43.

98 Other Versions

Version License Security Released
0.8.7 MIT 7 2013-07-27 - 04:55 almost 13 years
0.8.6.2 MIT 7 2013-06-28 - 06:47 almost 13 years
0.8.6.1 MIT 7 2013-04-15 - 07:24 about 13 years
0.8.6 MIT 7 2013-04-13 - 20:47 about 13 years
0.8.5.2 MIT 7 2013-02-26 - 08:57 about 13 years
0.8.5.1 MIT 7 2013-02-26 - 05:18 about 13 years
0.8.5 MIT 7 2013-02-25 - 06:11 about 13 years
0.8.4.1 UNKNOWN 7 2013-02-05 - 20:21 about 13 years
0.8.4 UNKNOWN 7 2013-02-05 - 05:01 about 13 years
0.8.3 UNKNOWN 7 2012-10-15 - 05:50 over 13 years
0.8.2.1 UNKNOWN 7 2012-06-10 - 19:58 almost 14 years
0.8.2 UNKNOWN 7 2012-06-07 - 19:52 almost 14 years
0.8.1 UNKNOWN 7 2012-05-02 - 20:33 about 14 years
0.8.0 UNKNOWN 7 2012-04-30 - 23:45 about 14 years
0.7.5 UNKNOWN 7 2012-01-31 - 23:12 over 14 years
0.7.4 UNKNOWN 7 2011-12-03 - 19:57 over 14 years
0.7.3 UNKNOWN 7 2011-10-15 - 18:28 over 14 years
0.7.2 UNKNOWN 7 2011-06-14 - 17:09 almost 15 years
0.7.1 UNKNOWN 7 2011-05-18 - 15:18 almost 15 years
0.7.0 UNKNOWN 7 2011-05-17 - 23:51 almost 15 years
0.6.8 UNKNOWN 7 2011-04-14 - 20:41 about 15 years
0.6.7 UNKNOWN 7 2011-04-06 - 23:14 about 15 years
0.6.6 UNKNOWN 7 2011-04-06 - 18:16 about 15 years
0.6.5 UNKNOWN 7 2011-03-14 - 03:18 about 15 years
0.6.4 UNKNOWN 7 2010-12-22 - 01:07 over 15 years
0.6.3 UNKNOWN 7 2010-11-21 - 20:52 over 15 years
0.6.2 UNKNOWN 7 2010-11-15 - 21:49 over 15 years
0.6.1 UNKNOWN 7 2010-09-06 - 21:04 over 15 years
0.6.0 UNKNOWN 7 2010-08-29 - 21:23 over 15 years
0.5.8 UNKNOWN 7 2010-06-22 - 19:04 almost 16 years
0.5.7 UNKNOWN 7 2010-06-21 - 18:01 almost 16 years
0.5.6 UNKNOWN 7 2010-06-12 - 22:23 almost 16 years
0.5.5 UNKNOWN 7 2010-05-22 - 16:04 almost 16 years
0.5.4 UNKNOWN 7 2010-03-22 - 20:42 about 16 years
0.5.3 UNKNOWN 7 2010-01-11 - 07:59 over 16 years
0.5.2 UNKNOWN 7 2009-12-16 - 20:30 over 16 years
0.5.1 UNKNOWN 7 2009-12-15 - 22:26 over 16 years
0.5.0 UNKNOWN 7 2009-12-15 - 01:02 over 16 years
0.5.1p1 UNKNOWN 7 2009-12-16 - 20:24 over 16 years
0.4.0 UNKNOWN 7 2009-11-15 - 13:11 over 16 years
0.2.3.5 UNKNOWN 7 2009-08-18 - 05:30 over 16 years
0.2.3.4 UNKNOWN 7 2009-08-07 - 20:51 over 16 years
0.2.3.3 UNKNOWN 7 2009-07-27 - 04:30 almost 17 years
0.2.3.2 UNKNOWN 7 2009-08-05 - 14:12 over 16 years
0.2.3 UNKNOWN 7 2009-07-25 - 17:46 almost 17 years
0.2.2 UNKNOWN 7 2009-07-25 - 17:46 almost 17 years
0.2.1 UNKNOWN 7 2009-07-25 - 17:46 almost 17 years
0.2.0 UNKNOWN 7 2009-07-25 - 17:46 almost 17 years