Is yard 0.4 vulnerable?
RubyGems · 1 release from 0.4.0 to 0.4.0 · latest yard is 0.9.45 · checked 18 Nov 2026
Yes: 5 known advisories
Yes. yard 0.4.0, the last 0.4 release, is affected by 5 known security advisories (2 high, 3 medium), including CVE-2019-1020001, CVE-2017-17042, CVE-2026-49342. Upgrade to 0.9.44 or later to fix all of them.
bundle update --conservative yard # Gemfile: '>= 0.9.44'Is your project on an affected yard?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting yard 0.4.0
YARD static cache reads raw traversal paths before router sanitization
- Affected
- <0.9.44
- Fixed in
- 0.9.44
yard: Possible arbitrary path traversal and file access via yard server
- Affected
- <0.9.42
- Fixed in
- 0.9.42
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
- Affected
- <0.9.36
- Fixed in
- 0.9.36
Path Traversal vulnerability that affects yard
- Affected
- <0.9.20
- Fixed in
- 0.9.20
Arbitrary file read vulnerability in yard server
- Affected
- <0.9.11
- Fixed in
- 0.9.11
Which of your client projects are still on yard 0.4?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact yard version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other yard versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.