Description
lib/yard/core_ext/file.rb in the server in YARD before 0.9.11 does not block relative paths with an initial ../ sequence, which allows attackers to conduct directory traversal attacks and read arbitrary files.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | yard | 0.9.12-1 | — |
| Debian 13 | yard | 0.9.12-1 | — |
| Debian 12 | yard | 0.9.12-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | yard | 0.9.26-1ubuntu0.1 | USN-6731-1 |
| Ubuntu 20.04 LTS | yard | 0.9.24-1+deb11u1build0.20.04.1 | USN-6731-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | yard | 0.9.12-2ubuntu0.1~esm1 | USN-6731-1 |
| Ubuntu Pro 16.04 LTS | yard | 0.8.7.6+git20160220-3ubuntu0.1~esm1 | USN-6731-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | rubygem-yard | 0.8.7.3-7.3.1 | SUSE-SU-2018:1890-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | yard | < 0.9.11 | 0.9.11 | GHSA-gj4p-3wh3-2rmf |
Advisories 2
- USN-6731-1 yard vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- SUSE-SU-2018:1890-1 Security update for rubygem-yard SUSE / openSUSE Security Updates · Feb 4, 2026