VDB
Sign up
HIGH7.5

GHSA-gj4p-3wh3-2rmf

Arbitrary file read vulnerability in yard server

Quick fix

GHSA-gj4p-3wh3-2rmf — yard: upgrade to the fixed version with the command below.

bundle update yard

Details

`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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/yard
Introduced in: 0Fixed in: 0.9.11
Fixbundle update yard

References