Skip to main content

BentoPDF CVE-2026-77581

| EUVDEUVD-2026-86229 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-09-24 GitHub_M
8.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register low-TTL domain resolving to public IP
  2. Delivery
    Forge Origin header, craft cert-like allowed path
  3. Exploit
    Proxy validates hostname as public
  4. Execution
    DNS rebinds to internal/metadata address on fetch
  5. Impact
    Relay internal response body (up to 10MB) to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the BentoPDF certificate/timestamp CORS proxy (cloudflare/cors-proxy-worker.js) to be deployed on a runtime OTHER than Cloudflare Workers (e.g., workerd, Node, or another runtime inside a cloud VPC) whose execution environment can actually route to internal/reserved/metadata addresses - on the default Cloudflare edge deployment the flaw is not exploitable because there is no route to private destinations. The attacker must control a domain's DNS with a very low TTL to win the rebinding race between the isPrivateOrReservedHost() check and fetch()'s own resolution, and must supply a path matching ALLOWED_PATH_PATTERNS (a certificate-like path). The forgeable Origin header and, in deployments without PROXY_SECRET, the skipped signature check remove any authentication barrier; where PROXY_SECRET is set it is only anti-abuse (it ships in the public client bundle) and does not stop a determined attacker. Limiting factors: affected versions 2.8.6 and earlier (fixed in 2.8.7), non-default off-Cloudflare hosting, and the DNS-rebinding timing race.

Impact

This is a real but heavily deployment-gated SSRF (CWE-918). The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L = 8.6) treats it as network-reachable, unauthenticated, and low-complexity, which is why it scores High. However, the advisory itself states the critical qualifier: on the DEFAULT Cloudflare Worker deployment the flaw is NOT exploitable, because Cloudflare's edge has no network route to RFC1918/loopback/link-local or the 169.254.169.254 metadata endpoint - a successful DNS rebind reaches nothing. Exploitation is only meaningful when the Worker is run OFF Cloudflare (workerd, Node, or another runtime inside a cloud VPC) that can actually reach internal addresses. There is no EPSS score, no CISA KEV listing, and no public exploit code identified at time of analysis, so this is not confirmed to be under active exploitation. The AC:L rating is also arguable: real exploitation requires winning a DNS-rebinding race with a low-TTL attacker-controlled domain, which pushes practical complexity toward AC:H. Net: a high-CVSS number that overstates real-world risk for the common (Cloudflare) deployment, but a genuine internal-network/metadata read risk for self-hosters running the proxy off Cloudflare without egress filtering. Prioritize only if you self-host the CORS proxy on a non-Cloudflare runtime inside a network with reachable internal services.

Exploit ScenarioDerived

An attacker registers a domain with a very low DNS TTL and a certificate-like URL path that satisfies ALLOWED_PATH_PATTERNS, then sends it to a self-hosted BentoPDF CORS proxy running off Cloudflare (e.g., in a cloud VPC), forging the browser Origin header and relying on the absence of PROXY_SECRET to skip the signature check. The hostname first resolves to a public IP to pass isPrivateOrReservedHost(), then rebinds to an internal or 169.254.169.254 metadata address by the time fetch() re-resolves, and the proxy relays up to 10 MB of the internal response back to the attacker. No public exploit code is currently identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Server-side request forgery in the BentoPDF certificate/timestamp CORS proxy (cloudflare/cors-proxy-worker.js) allows unauthenticated remote attackers to relay requests to internal, reserved, or cloud-metadata destinations when the Worker is hosted on a non-Cloudflare runtime. The flaw is a time-of-check/time-of-use gap: isPrivateOrReservedHost() validates the supplied hostname separately from the DNS resolution performed by fetch(targetUrl), so an attacker who controls a domain's DNS with a very low TTL can pass validation with a public address and have the fetch land on a private one; a certificate-like path satisfies ALLOWED_PATH_PATTERNS, and the browser-oriented Origin header can simply be forged by a direct client, with PROXY_SECRET being only an anti-abuse measure that ships in the public client bundle. Affected versions are 2.8.6 and earlier, fixed in 2.8.7; no public exploit code or confirmed active exploitation was identified at time of analysis, and the assessment rates exploitation as high-complexity because it is gated on a non-default off-Cloudflare deployment that can actually route to internal addresses plus a DNS-rebinding timing race.

RemediationAI

Vendor-released patch: upgrade BentoPDF to 2.8.7, which is the release referenced by the advisory (https://github.com/alam00000/bentopdf/releases/tag/v2.8.7) and contains the fix commits 45496fcd2ed6e02dcdde0d3839cc5024c091760c and 58cd1a8893bfe06e4a59a72adc2e7db00a8b9266; full details are in GHSA-5xjf-rr5x-pcfj. Because the residual DNS-rebinding gap cannot be fully closed in application code on non-Cloudflare runtimes, operators who self-host the CORS proxy off Cloudflare (workerd, Node, or inside a cloud VPC) must add mandatory network-level egress filtering in front of the proxy, blocking outbound connections to RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), link-local (169.254.0.0/16, including the 169.254.169.254 metadata endpoint), and their IPv6 equivalents - the trade-off is that this egress firewall is an infrastructure requirement the Worker itself cannot enforce, and misconfiguration leaves the SSRF fully reachable. If the proxy must stay on Cloudflare Workers, the default edge egress has no route to private destinations and the flaw is not exploitable there, so migrating the Worker back to that platform is an effective compensating control. Setting PROXY_SECRET is worth doing only to deter casual abuse, not as a security boundary, since the secret ships in the public client bundle and is not treated as authentication by the vendor; do not rely on the Origin allow-list as a control either, because the Origin header is trivially forged by non-browser clients. Finally, do not attempt to mitigate by restricting destinations to a fixed host allowlist - the proxy must fetch AIA/OCSP/CRL URLs from arbitrary certificate authorities, so a static allowlist would break certificate and timestamp signing for legitimate CAs.

Affected VersionsENISA

bentopdf < 2.8.7

Affected Packages

euvd bentopdf fix: 2.8.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-918 (Server-Side Request Forgery) arising from a classic DNS-rebinding TOCTOU defect in the certificate/timestamp fetch path of BentoPDF's CORS proxy Worker. BentoPDF is a client-side PDF toolkit, but its certificate and timestamp verification features must fetch certificate-chain material from arbitrary certificate authorities - the hostnames come from each certificate's AIA, OCSP, and CRL fields (for example www.cert.fnmt.es and corporate CAs) - so the proxy validates destinations with isPrivateOrReservedHost() rather than a fixed host allowlist, because an allowlist would break signing for legitimate CAs. The safety check and the subsequent fetch(targetUrl) each resolve the hostname independently, so an attacker controlling DNS for their own domain with a very low TTL can win the race: the check sees a public address and fetch() resolves to a private, loopback, link-local, or 169.254.169.254 metadata address. Path filtering via ALLOWED_PATH_PATTERNS is bypassable with a certificate-like path, and the Origin allow-list plus the optional PROXY_SECRET HMAC are explicitly documented as anti-abuse controls and not a security boundary - the Origin header is forgeable by non-browser clients and the HMAC secret is shipped in the public client bundle. Where PROXY_SECRET is unset, request signatures are not verified at all, and the 2.8.7 fix adds a startup warning for this configuration. The proxy has a 10 MB response-limit but can relay response bodies from reachable destinations, giving high confidentiality impact (C:H) with limited integrity and availability impact (I:L/A:L) under the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L. Critically, on the default Cloudflare Workers deployment the egress originates from Cloudflare's edge, which has no route to private/internal or metadata addresses, so a successful rebind reaches nothing; the vulnerability is exploitable only on non-Cloudflare runtimes (workerd, Node, or another runtime inside a cloud VPC) whose execution environment can route to internal destinations.

Know when Bentopdf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
vuln.today AI 7.0 HIGH

Network-reachable and unauthenticated (forgeable Origin, optional PROXY_SECRET), but AC:H reflects the DNS-rebinding timing race and non-default off-Cloudflare runtime; primary impact is reading internal responses (C:H) with limited I/A.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 17:18 EUVD
CVE Published
Sep 24, 2026 - 15:23 cve.org
HIGH 8.6

DescriptionCVE.org

BentoPDF is a client-side PDF toolkit that is self hostable. In 2.8.6 and earlier, the certificate and timestamp CORS proxy in cloudflare/cors-proxy-worker.js uses isPrivateOrReservedHost() to validate a supplied hostname separately from the DNS resolution used by fetch(targetUrl), allowing an attacker-controlled hostname to resolve to an internal or reserved destination after validation. A certificate-like path can satisfy ALLOWED_PATH_PATTERNS, and direct clients can forge the browser-oriented Origin header. Deployments without PROXY_SECRET skip the optional signature check, while the signature is an anti-abuse measure rather than a destination-security boundary. The proxy has a 10 MB response limit and can relay response bodies from reachable destinations. The advisory identifies both the official Worker deployment and self-hosted instances as impacted where the Worker execution environment can reach internal or reserved destinations. This vulnerability is fixed in 2.8.7.

Technical POC Analysis

CWE-918 (Server-Side Request Forgery) in cloudflare/cors-proxy-worker.js, function isValidCertificateUrl(), which gates the user-supplied ?url= parameter through isPrivateOrReservedHost().

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

BentoPDF's certificate/timestamp CORS proxy Worker (cloudflare/cors-proxy-worker.js) carries a server-side request forgery flaw rated 8.6 that lets a remote attacker steer the proxy's outbound requests toward internal, reserved, or cloud-metadata destinations on any deployment hosted outside Cloudflare's own runtime. Because those metadata endpoints can hand back cloud IAM credentials, a single exposed Worker can become a gateway into internal systems that are otherwise unreachable from the internet, expanding an internet-facing PDF service into an organization-wide exposure. Leadership should care because the affected component is internet-facing, the technique is cheap to attempt at scale, and affected code is only addressed by a later release (2.8.7) that must be verified as deployed.

Business Impact: High
Compensating Controls

No vendor-released patch was identified as available at time of analysis, though the advisory names BentoPDF 2.8.7 as the fixing release, so apply that version as soon as it can be verified. Interim mitigations: take the certificate/timestamp CORS proxy endpoint offline or restrict it to trusted callers; run the Worker only on Cloudflare's runtime, since the flaw requires a non-Cloudflare host; enforce egress allowlisting that denies link-local, RFC1918, and reserved destinations; require IMDSv2 with a hop limit of 1; and rotate cloud credentials reachable from the affected hosts.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche self-hostable open-source PDF toolkit, limited production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy