Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/yard@0.6.3
purl pkg:gem/yard@0.6.3
Next non-vulnerable version 0.9.42
Latest non-vulnerable version 0.9.42
Risk 4.0
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-4fgr-usag-z7dm
Aliases:
CVE-2024-27285
GHSA-8mq4-9jjh-9xrc
YARD's default template vulnerable to Cross-site Scripting in generated frames.html The "frames.html" file within the Yard Doc's generated documentation is vulnerable to Cross-Site Scripting (XSS) attacks due to inadequate sanitization of user input within the JavaScript segment of the "frames.erb" template file.
0.9.36
Affected by 1 other vulnerability.
VCID-658d-9w1u-q7fh
Aliases:
CVE-2026-41493
GHSA-3jfp-46x4-xgfj
Possible arbitrary path traversal and file access via yard server ### 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](https://github.com/lsegal/yard/security/advisories/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.
0.9.42
Affected by 0 other vulnerabilities.
VCID-pnw3-qk8w-ayhc
Aliases:
CVE-2017-17042
GHSA-gj4p-3wh3-2rmf
Directory traversal `lib/yard/core_ext/file.rb` does not block relative paths with an initial `../` sequence, which allows attackers to conduct directory traversal attacks and read arbitrary files.
0.9.11
Affected by 3 other vulnerabilities.
VCID-xkbj-n36y-8bbr
Aliases:
CVE-2019-1020001
GHSA-xfhh-rx56-rxcr
Arbitrary path traversal and file access via `yard server` A path traversal vulnerability was discovered in YARD <= 0.9.19 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 issue is resolved in v0.9.20 and later.
0.9.20
Affected by 2 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T08:11:22.042519+00:00 GitLab Importer Affected by VCID-658d-9w1u-q7fh https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/yard/GHSA-3jfp-46x4-xgfj.yml 38.6.0
2026-06-06T08:10:56.076250+00:00 GitLab Importer Affected by VCID-658d-9w1u-q7fh https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/yard/CVE-2026-41493.yml 38.6.0
2026-06-06T04:42:31.663898+00:00 GitLab Importer Affected by VCID-4fgr-usag-z7dm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/yard/CVE-2024-27285.yml 38.6.0
2026-06-05T16:22:06.802402+00:00 GHSA Importer Affected by VCID-xkbj-n36y-8bbr https://github.com/advisories/GHSA-xfhh-rx56-rxcr 38.6.0
2026-06-05T16:17:16.300767+00:00 GHSA Importer Affected by VCID-pnw3-qk8w-ayhc https://github.com/advisories/GHSA-gj4p-3wh3-2rmf 38.6.0
2026-06-04T20:23:47.582312+00:00 GitLab Importer Affected by VCID-xkbj-n36y-8bbr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/yard/CVE-2019-1020001.yml 38.6.0
2026-06-04T20:10:23.112679+00:00 GitLab Importer Affected by VCID-pnw3-qk8w-ayhc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/yard/CVE-2017-17042.yml 38.6.0
2026-06-04T18:14:51.130590+00:00 Ruby Importer Affected by VCID-4fgr-usag-z7dm https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml 38.6.0
2026-06-04T18:11:32.971990+00:00 Ruby Importer Affected by VCID-pnw3-qk8w-ayhc https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2017-17042.yml 38.6.0