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…

Path traversal in Cohttp.Path.resolve_local_file

0
High
Published: 08/20/2026 (08/20/2026, 18:15:00 UTC)
Source: GCVE Database
Product: cohttp

Description

A path traversal vulnerability exists in the Cohttp library's Path.resolve_local_file function due to improper normalization of URI paths before percent decoding. This allows encoded path separators (%2f) to bypass dot-segment normalization, enabling crafted requests to access files outside the intended document root. The issue was reported in August 2026 and fixed in version 6.3.0.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
N
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/S:N/AU:Y/R:A/V:D/RE:M

Affected software

cohttp
pkg:opam/cohttp
Affected versions
<6.3.0<5f5a65ec3289c1cd8072bdf0ef22c181b4f11356=0.9.1=0.9.2=0.9.3=0.9.4=0.9.5=0.9.6=0.9.7=0.9.8=0.9.9=0.9.10=0.9.11=0.9.12=0.9.13=0.9.14=0.9.15=0.9.16=0.10.0=0.10.1=0.11.0=0.11.1=0.11.2=0.12.0=0.13.0=0.14.0=0.15.0=0.15.1=0.15.2=0.16.0=0.16.1=0.17.0=0.17.1=0.17.2=0.18.0=0.18.1=0.18.2=0.18.3=0.19.0=0.19.1=0.19.2=0.19.3=0.20.0=0.20.1=0.20.2=0.21.0=0.21.1=0.22.0=0.99.0=1.0.0=1.0.2=1.1.0=1.1.1=1.2.0=2.0.0=2.1.2=2.1.3=2.2.0=2.3.0=2.4.0=2.5.0=2.5.1=2.5.2=2.5.2-1=2.5.3=2.5.4=2.5.5=2.5.6=2.5.7=2.5.8=3.0.0=4.0.0=4.1.1=4.1.2=5.0.0=5.1.0=5.2.0=5.3.0=5.3.1=6.0.0~alpha0=6.0.0~alpha1=6.0.0~alpha2=6.0.0~beta2=6.0.0=6.1.0=6.1.1=6.2.1=6.2.2

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: 08/22/2026, 13:41:32 UTC

Technical Analysis

The vulnerability arises because the function resolves and normalizes the URI path before decoding percent-encoded characters. Encoded separators such as %2f remain encoded during normalization, allowing them to survive dot-segment removal. After normalization, the path is percent-decoded, which can transform a normalized path into one containing directory traversal sequences (e.g., /static/..%2f..%2f..%2fetc/passwd becomes /static/../../../etc/passwd). This flaw enables attackers to access arbitrary files on the server by bypassing path normalization controls. The issue was reported on August 11, 2026, and fixed in Cohttp version 6.3.0.

Potential Impact

An attacker can exploit this vulnerability to perform path traversal attacks, potentially accessing sensitive files outside the intended document root. This can lead to unauthorized disclosure of sensitive information. The vulnerability does not require authentication and can be exploited remotely without user interaction.

Mitigation Recommendations

A fix is available in Cohttp version 6.3.0. Users should upgrade to version 6.3.0 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
OSEC-2026-16
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["opam"]
Database Specific Severity
null
Cvss Version
4.0

Threat ID: 6a89a6c8acd9273b49150b05

Added to database: 08/22/2026, 13:40:24 UTC

Last enriched: 08/22/2026, 13:41:32 UTC

Last updated: 08/22/2026, 15:42:20 UTC

Views: 3

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.

External Links

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