Skip to content

🚨 [security] Update yard 0.9.38 β†’ 0.9.42 (minor)#84

Open
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/yard-0.9.42
Open

🚨 [security] Update yard 0.9.38 β†’ 0.9.42 (minor)#84
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/yard-0.9.42

Conversation

@depfu
Copy link
Copy Markdown
Contributor

@depfu depfu Bot commented Apr 18, 2026


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ yard (0.9.38 β†’ 0.9.42) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 yard: 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 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.

Release Notes

0.9.42

  • Fix alternating rows when loading a module in default HTML templates with subelements in the nav frame
  • Fix reliability of keypresses and copy/paste in search box (#1174)
  • Fix regression in yard server search box styling
  • Fix possible path traversal with document_root (--docroot) set in yard server (GHSA-xfhh-rx56-rxcr)

0.9.41

  • Add support for rdoc-image:... syntax in HybridMarkup (#1676)
  • Add support for colon suffix code blocks in HybridMarkup (rdoc compatibility)
  • Fix responsiveness and state issues with nav frame links in yard server

0.9.40

  • Add support for Ruby .rbs files (docstrings included) (#1673)
  • Add built-in hybrid RDoc/Markdown renderer (HybridMarkdown) requiring no external gems (#1674)
  • Add support for #- as a comment-block separator. See Getting Started Guide.
  • Add support for commonmarker version >= 1.0.
  • Remove usage of jQuery in default templates. jQuery library is still packaged in templates for backward compatibility (#1675)
  • Fix false self-referential mixin when bare name matches ancestor namespace (#1672)
  • Fix bracket/brace map corruption from Ruby 3.0+ pattern matching deconstruction (#1671)
  • Fix @!scope class on attributes (#1582, #1655, #1666)
  • Fix @!parse directives not including source for block (#1665)
  • Fix inherited methods not appearing in groups (#1656)

0.9.39

  • Add support for Ruby 4.0 (#1663)
  • Add changelog URI to gemspec metadata (#1641)
  • Fix issues with source ranges (#1642)
  • Fix an issue loading relative links from file list in HTML template (#1660)
  • Various test fixes (#1650, #1651)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added dependencies Pull requests that update a dependency file depfu 🚨 security Security update or fix labels Apr 18, 2026
@depfu depfu Bot assigned SxDx Apr 18, 2026
@depfu depfu Bot requested a review from a team April 18, 2026 00:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 100.00%. Comparing base (4763359) to head (a1c7f8e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #84   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines          362       362           
=========================================
  Hits           362       362           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

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 depfu 🚨 security Security update or fix

Development

Successfully merging this pull request may close these issues.

1 participant