Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Bump yard from 0.9.16 to 0.9.20 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps yard from 0.9.16 to 0.9.20. This update includes security fixes.

Vulnerabilities fixed

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

Release v0.9.19

  • Fixed bug in browser back button (#1071, #1228)
  • Fixed handling of ArgumentError in ExtraFileObject (#1198)
  • Fixed double return tag displaying on boolean methods (#1226)
  • Removed unused Module#namespace_name function (#1229)
  • Fixed parsing order of README files. YARD will now prefer README over
    README.md over README.x.md or README-x.md (and the like). READMEs will now
    also be ordered by filename; the first README is still chosen unless
    --readme is provided.
  • Updated AsciiDoc markup support to use non-deprecated calls.

v0.9.18

No release notes provided.

Release v0.9.17

No release notes provided.

Changelog

Sourced from yard's changelog.

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.

0.9.19 - April 2nd, 2019

  • Fixed bug in browser back button (#1071, #1228)
  • Fixed handling of ArgumentError in ExtraFileObject (#1198)
  • Fixed double return tag displaying on boolean methods (#1226)
  • Removed unused Module#namespace_name function (#1229)
  • Fixed parsing order of README files. YARD will now prefer README over
    README.md over README.x.md or README-x.md (and the like). READMEs will now
    also be ordered by filename; the first README is still chosen unless
    --readme is provided.
  • Updated AsciiDoc markup support to use non-deprecated calls.
Commits

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.


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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it
  • @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)

Finally, you can contact us by mentioning @dependabot.

Bumps [yard](https://github.com/lsegal/yard) from 0.9.16 to 0.9.20. **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.16...v0.9.20)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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