Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

[Security] Bump yard from 0.9.19 to 0.9.24#966

Closed
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/bundler/yard-0.9.24
Closed

[Security] Bump yard from 0.9.19 to 0.9.24#966
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/bundler/yard-0.9.24

Conversation

@dependabot-preview
Copy link
Contributor

Bumps yard from 0.9.19 to 0.9.24. This update includes security fixes.

Vulnerabilities fixed

Sourced from The Ruby Advisory Database.

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.

Patched versions: >= 0.9.20 Unaffected versions: none

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects yard

Possible arbitrary path traversal and file access via yard server

Impact

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.

Thanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.

Patches

Please upgrade to YARD v0.9.20 immediately if you are relying on yard server to host documentation in any untrusted environments.

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

Sourced from The Ruby Advisory Database.

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

Patched versions: >= 0.9.20 Unaffected versions: none

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects yard

Possible arbitrary path traversal and file access via yard server

Impact

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.

Thanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.

Patches

Please upgrade to YARD v0.9.20 immediately if you are relying on yard server to host documentation in any untrusted environments.

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

Release notes

Sourced from yard's releases.

Release v0.9.24

  • Add {YARD::CodeObjects::NamespaceMapper.on_invalidate} callback when separator cache is changed.
  • Fix issue where Registry fails to resolve first-time lookups on instance methods.

Release v0.9.23

  • Fix issues with double encoded code blocks when highlighted from an extra file.

Release v0.9.22

  • Revert jquery update in last release since it requires more changes. (#1298)

Release v0.9.21

  • Updates to add support for Ruby 2.7.0 (#1290, #1296)
  • Fix parsing of multiline method signatures (#1220)
  • Remove RubyGems post install message (#1269)
  • Improve object deletion from RegistryStore (#1284)
  • Improve memory usage performance (#1260)
  • Handle include and extend calls with explicit receivers (#1274)
  • Fix deep nesting of TOC items (#1288)
  • Fix highlighting for Asciidoc markup code blocks (#1276)
  • Fix HTML formatting of script tags (#1263)
  • Update jquery to 3.4.1 (#1294)
  • Test fixes (#1244)

Release v0.9.20

  • Fix parsing of stringified Symbols in Ruby source (#1256).
  • Fix path traversal vulnerability in yard server. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions. Thanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.
Changelog

Sourced from yard's changelog.

0.9.24 - January 8th, 2020

  • Add {YARD::CodeObjects::NamespaceMapper.on_invalidate} callback when separator cache is changed.
  • Fix issue where Registry fails to resolve first-time lookups on instance methods.

0.9.23 - January 5th, 2020

  • Fix issues with double encoded code blocks when highlighted from an extra file.

0.9.22 - December 31st, 2019

  • Revert jquery update in last release since it requires more changes. (#1298)

0.9.21 - December 31st, 2019

  • Updates to add support for Ruby 2.7.0 (#1290, #1296)
  • Fix parsing of multiline method signatures (#1220)
  • Remove RubyGems post install message (#1269)
  • Improve object deletion from RegistryStore (#1284)
  • Improve memory usage performance (#1260)
  • Handle include and extend calls with explicit receivers (#1274)
  • Fix deep nesting of TOC items (#1288)
  • Fix highlighting for Asciidoc markup code blocks (#1276)
  • Fix HTML formatting of script tags (#1263)
  • Update jquery to 3.4.1 (#1294)
  • Test fixes (#1244)

0.9.20 - June 27th, 2019

  • Fix parsing of stringified Symbols in Ruby source (#1256).
  • Fix path traversal vulnerability in yard server. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions. Thanks to CuongMX from Viettel Cyber Security for discovering this vulnerability.
Commits
  • 872b3ac Tag release v0.9.24
  • 7ec503b Update changelog
  • f4f02ba Add hack to make RedCloth load on MinGW systems (test only)
  • 633795c Move redcarpet tests into redcarpet integration file
  • ee3469e Move redcloth tests into redcloth integration file
  • c397187 Fix broken redcarpet test (incorrect provider was being loaded due to cache)
  • be85720 Remove pending from redcarpet spec (this should work)
  • e4cd952 Fix documentation
  • 6e19610 Update GitHub Action CI to checkout@v2
  • aa0ed28 Fix issue where Registry fails to resolve first-time lookups on instance methods
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [yard](https://github.com/lsegal/yard) from 0.9.19 to 0.9.24. **This update includes security fixes.**
- [Release notes](https://github.com/lsegal/yard/releases)
- [Changelog](https://github.com/lsegal/yard/blob/master/CHANGELOG.md)
- [Commits](lsegal/yard@v0.9.19...v0.9.24)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Jan 9, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #986.

@dependabot-preview dependabot-preview bot deleted the dependabot/bundler/yard-0.9.24 branch May 4, 2020 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants