CVE-2026-102354: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in alam00000 bentopdf
Description
CVE-2026-102354 is a time-of-check to time-of-use (TOCTOU) race condition vulnerability in BentoPDF versions prior to 2.8.7. It involves a DNS-over-HTTPS safety check performed separately from the actual fetch request, allowing an attacker controlling authoritative DNS to potentially bypass hostname resolution checks under certain conditions. Exploitation requires precise timing and network conditions, and the vulnerability is fixed in version 2.8.7.
CVSS v3.1
Score 6.8medium
Affected software
alam00000
bentopdf
pkg:github/alam00000/bentopdfRun 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
Technical Analysis
BentoPDF, a privacy-focused PDF toolkit running in the browser, versions before 2.8.7 contain a TOCTOU race condition in cloudflare/cors-proxy-worker.js. The function hostnameResolvesToPrivate() performs a DNS-over-HTTPS safety check separately from the outbound fetch to the target URL. If PROXY_SECRET validation is not enabled, an attacker controlling authoritative DNS can forge the Origin header and supply URLs that pass initial proxy path checks but resolve to private or link-local addresses during the fetch. This discrepancy can allow the attacker to receive allowed response bodies. Exploitation requires precise timing, and certain mitigations like blocking redirects and IP-literal obfuscation, as well as network reachability constraints, reduce the risk. The issue is resolved in BentoPDF version 2.8.7.
Potential Impact
Successful exploitation can allow an attacker to bypass DNS resolution safety checks and retrieve response bodies from private or link-local network addresses that should be inaccessible. This can lead to unauthorized data disclosure. However, exploitation is constrained by the need for precise timing, network reachability, and other mitigations. The vulnerability does not impact integrity or availability.
Mitigation Recommendations
A patch is available and the vulnerability is fixed in BentoPDF version 2.8.7. Users should upgrade to version 2.8.7 or later. Since BentoPDF is a cloud-hosted service, the vendor manages remediation for this service. Check the vendor advisory for confirmation and ensure PROXY_SECRET validation is enabled to mitigate the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-28T22:38:42.255Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Is Cloud Service
- true
Threat ID: 6acfd5b12cdf04f656a5421d
Added to database: 10/14/2026, 19:19:13 UTC
Last enriched: 10/14/2026, 19:33:25 UTC
Last updated: 10/14/2026, 19:34:08 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.