Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 67%

CVE-2026-49342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard

0
Medium
VulnerabilityCVE-2026-49342cvecve-2026-49342cwe-22
Published: 06/19/2026 (06/19/2026, 19:13:59 UTC)
Source: CVE Database V5
Vendor/Project: lsegal
Product: yard

Description

YARD is a documentation generation tool for the Ruby programming language. Prior to version 0.9.44, YARD's static cache lookup reads a request path before the router's path cleanup runs. When a server is configured with a document root, a traversal path such as `/../yard-cache-secret.html` is joined against that root and can return a readable sibling `.html` file outside the intended static tree. Version 0.9.44 patches the issue.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

yard
pkg:gem/yard
Affected versions
<0.9.44

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 21:48:38 UTC

Technical Analysis

CVE-2026-49342 is a path traversal vulnerability (CWE-22) in YARD before version 0.9.44. The static cache lookup mechanism reads the request path prior to router path normalization, enabling an attacker to craft traversal paths (e.g., '/../yard-cache-secret.html') that bypass the intended document root restrictions. This allows unauthorized reading of sibling .html files outside the static directory tree. The vulnerability is addressed in YARD version 0.9.44.

Potential Impact

An attacker can read files outside the intended static document root by exploiting the path traversal flaw, potentially exposing sensitive .html files. The vulnerability does not affect integrity or availability, only confidentiality of files accessible via crafted paths.

Mitigation Recommendations

Upgrade YARD to version 0.9.44 or later, where the path traversal issue is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the fix is included in version 0.9.44.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-29T14:35:45.903Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a359d6df198dc38c12203a6

Added to database: 06/19/2026, 19:50:05 UTC

Last enriched: 06/26/2026, 21:48:38 UTC

Last updated: 08/02/2026, 19:17:59 UTC

Views: 66

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses