CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-365W-HQF6-VXFG

GHSA-365w-hqf6-vxfg: Multiple Critical Vulnerabilities in Crawl4AI Docker API Server

Amit Schendel
Amit Schendel
Senior Security Researcher

Jun 16, 2026·7 min read·33 visits

Executive Summary (TL;DR)

Multiple critical security vulnerabilities in Crawl4AI versions <= 0.8.6 allow unauthenticated arbitrary file write, SSRF, dynamic code execution, and authentication bypass.

The Crawl4AI Docker API server, in versions 0.8.6 and prior, contains multiple critical vulnerabilities including improper path sanitization, missing authentication on administration routes, hardcoded JWT secrets, and SSRF. These vulnerabilities allow remote, unauthenticated attackers to write arbitrary files, execute arbitrary code, and pivot into private cloud environments.

Vulnerability Overview

The Crawl4AI Docker API server, running versions 0.8.6 and prior, contains multiple critical and high-severity security vulnerabilities. Crawl4AI is an open-source, LLM-friendly web crawler and scraper designed to facilitate content extraction for artificial intelligence applications. The Docker API server exposing this crawl engine to network consumers serves as the primary attack surface, handling external requests for scraping, screenshot generation, and dynamic JavaScript execution.

These vulnerabilities span multiple weakness categories, including improper path sanitization (CWE-22), missing authentication dependencies (CWE-306), use of hardcoded credentials (CWE-798), server-side request forgery (CWE-918), and improper code execution controls (CWE-94). An unauthenticated remote attacker can exploit these weaknesses to execute arbitrary code, manipulate files on the host file system, or pivot into private cloud infrastructure.

The vulnerabilities represent a complete breakdown of input sanitization and access control boundaries within the API wrapper. Because the Docker container often runs with elevated privileges on internal hosting networks, compromise of this component allows an attacker to gain a foothold inside private deployment environments. This technical analysis explores the root causes, code paths, exploitation vectors, and remediation strategies for these combined issues.

Root Cause Analysis

The root causes of these vulnerabilities lie in the omission of fundamental input validation and authentication checks across several critical API endpoints. In the case of the screenshot (/screenshot) and PDF (/pdf) generation routes, the application accepted optional user-defined file path parameters without applying sanitization routines. This lack of restriction allowed file-system path traversal sequences to escape the designated temporary directory.

For the Server-Side Request Forgery (SSRF) vulnerabilities, the application failed to validate destination IP addresses and hostnames before dispatching outbound requests. This allowed users to supply webhooks and target crawl targets pointing to loopback addresses, private networks, or metadata services. The validation routine was also vulnerable to evasion techniques such as IPv6-mapped IPv4 notation, which bypasses standard string-matching defenses by representing IPv4 addresses within IPv6 wrappers.

Additionally, the API server lacked structured access control boundaries. It failed to apply authentication dependencies to administrative routes, and fell back to a hardcoded JWT signing secret ('mysecret') when the token configuration was omitted. Dynamic code execution paths in the extraction strategies also suffered from unsafe eval and exec invocations, allowing attackers to execute arbitrary Python commands via manipulated dynamic schemas.

Code Analysis

An inspection of the codebase prior to version 0.8.7 reveals how parameters were handled and how the patches remediated these flaws. In the vulnerable implementation of the path handling logic, raw user strings were passed to storage writers. The following comparison illustrates the transition from unsafe parameter consumption to structured Pydantic path validation:

# Vulnerable Path Consumption in server.py
@app.post("/screenshot")
async def take_screenshot(payload: ScreenshotPayload):
    # Unsanitized path accepted directly from client payload
    output_path = payload.output_path 
    await browser.screenshot(url=payload.url, path=output_path)
# Patched Path Validation in server.py (v0.8.7)
from pathlib import Path
from pydantic import BaseModel, field_validator
 
class ScreenshotPayload(BaseModel):
    url: str
    output_path: str
 
    @field_validator('output_path')
    @classmethod
    def validate_output_path(cls, v: str) -> str:
        # Ensure relative traversal sequences are blocked
        if '..' in v or v.startswith('/'):
            raise ValueError("Invalid output path structure")
        return v

To address the SSRF vulnerabilities, the developers introduced strict destination validation. The validation logic converts incoming URLs to normalized IP addresses and checks them against private subnets and metadata ranges, specifically resolving IPv6-mapped IPv4 variants. The following flow diagram demonstrates the validation sequence applied to inbound URLs:

Furthermore, the dynamic field computation logic in server.py and extraction_strategy.py was refactored to eliminate unsafe calls to eval. Commit 2fc39cbe89f3213ab2c0c3a04f25af795ee46047 restricted runtime interpretation by replacing arbitrary expression evaluation with structured AST (Abstract Syntax Tree) parsing and an explicit, safe attribute allowlist.

Exploitation Methodology

Exploitation of these vulnerabilities requires network access to the Crawl4AI Docker API server, which by default runs on port 8000. Because the administrative monitoring routes lacked authentication, an attacker could interact directly with endpoints such as /monitor/actions/cleanup or listen to sensitive events on the WebSocket /monitor/ws without providing any authentication credentials.

To execute an arbitrary file write attack, the attacker submits a POST request to /screenshot containing a relative path traversal sequence. The local file-writing mechanism processes this path and overwrites files on the container, such as the main server source code (/app/server.py). This path traversal vector achieves code modification and service disruption:

POST /screenshot HTTP/1.1
Host: local-crawl4ai-api:8000
Content-Type: application/json
 
{
  "url": "https://example.com",
  "output_path": "../../../../app/server.py"
}

For Server-Side Request Forgery, an attacker bypasses naive string filters by targeting internal resources using IPv6-mapped IPv4 addresses. A request sent to /crawl with the URL http://[::ffff:169.254.169.254]/latest/meta-data/ instructs the headless browser to retrieve data from the local cloud metadata endpoint. The crawler then returns this sensitive data to the remote attacker inside the standard HTTP response payload.

Impact Assessment

The cumulative security impact of these vulnerabilities is classified as critical, with a maximum CVSS v3.1 base score of 9.8. Successful exploitation of the unauthenticated endpoints allows complete compromise of the containerized application. An attacker can write arbitrary files to alter application logic, bypass JWT verification using the hardcoded default secret 'mysecret', and retrieve administrative information via the unsecured monitoring interface.

The presence of Server-Side Request Forgery (SSRF) represents a significant threat to cloud environments. If the Crawl4AI container is deployed within AWS, GCP, or Azure with access to the instance metadata service, an attacker can extract temporary IAM credentials, API tokens, and project metadata. This allows the attacker to escalate privileges and access adjacent resources inside the host cloud environment.

Additionally, the ability to run arbitrary JavaScript via /execute_js with disabled web security options allows attackers to perform cross-origin requests. Attackers can leverage the container's identity to query internal systems on the local Docker network, bypassing firewall protections and compromising other microservices that trust the container.

Remediation and Mitigation

The primary remediation for these vulnerabilities is upgrading the Crawl4AI package to version 0.8.7 or higher. The update implements robust input sanitization, removes dynamic code evaluation paths, closes the authentication gaps on the monitoring endpoints, and introduces a dynamic secret generation mechanism for JWT authentication if no strong custom secret is configured.

If immediate patching is not possible, administrators must implement several compensatory controls to reduce the risk of exploitation. First, network exposure must be limited by binding the API server to localhost or restricting access to authorized IP addresses via network security groups. Second, the CRAWL4AI_API_TOKEN environment variable must be populated with a strong, complex token to enforce authentication across all API endpoints:

# Example of setting a strong API token and custom JWT secret
export CRAWL4AI_API_TOKEN="s3cur3_v3ry_str0ng_t0k3n_123"
export JWT_SECRET_KEY="a_very_long_and_secure_random_key_of_32_bytes_or_more"

Finally, dynamic JavaScript execution should be disabled unless strictly required. Ensure that the environment variable CRAWL4AI_EXECUTE_JS_ENABLED is set to false, and run the container with restricted security profiles to prevent arbitrary file modifications from affecting the host file system.

Fix Analysis (2)

Technical Appendix

CVSS Score
9.8/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Systems

Crawl4AI Docker API Server <= 0.8.6

Affected Versions Detail

Product
Affected Versions
Fixed Version
crawl4ai
unclecode
<= 0.8.60.8.7
AttributeDetail
CWE IDCWE-798, CWE-22, CWE-918, CWE-94, CWE-306, CWE-79
Attack VectorNetwork (AV:N)
CVSS Score9.8 (Critical)
Exploit StatusProof-of-Concept
CISA KEV StatusNot Listed
ImpactArbitrary File Write, SSRF, Remote Code Execution

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1078Valid Accounts
Defense Evasion
T1083File and Directory Discovery
Discovery
CWE-798
Use of Hard-coded Credentials

The application uses hard-coded credentials, fails to restrict paths to safe directories, is susceptible to SSRF, allows unauthorized code generation, and lacks authentication checks on administrative endpoints.

References & Sources

  • [1]GitHub Security Advisory GHSA-365w-hqf6-vxfg
  • [2]Crawl4AI Security Advisory

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 20 hours ago•CVE-2026-93363
4.3

CVE-2026-93363: Improper Access Control in Payload CMS Storage Upload Route

Payload CMS contains a missing authorization vulnerability (CWE-862) in its client-side upload instructions endpoint and the `@payloadcms/storage-vercel-blob` storage adapter. Two distinct logic defects allow authenticated users lacking collection-level `create` or `update` permissions to generate signed upload tokens and upload arbitrary files directly to external cloud storage.

Alon Barad
Alon Barad
7 views•9 min read
•about 21 hours ago•CVE-2026-55098
6.5

CVE-2026-55098: Cross-Database Authorization Bypass via DuckDB Table-Valued I/O Functions in Basekick-Labs Arc

CVE-2026-55098 (GHSA-93cm-2v4m-c56c) is an authorization bypass and sensitive information disclosure vulnerability in Basekick-Labs Arc prior to version 26.06.2. The flaw stems from an incomplete remediation of CVE-2026-47735, which failed to restrict the full suite of DuckDB table-valued filesystem I/O functions and quoted-identifier invocations. Because Arc's query parser ignores function calls during table reference extraction, authenticated users with minimal or empty permissions can invoke functions like parquet_scan(), glob(), and read_blob() to read, enumerate, and extract telemetry data across all tenant databases residing within the shared local storage root.

Alon Barad
Alon Barad
7 views•10 min read
•about 22 hours ago•CVE-2026-113787
6.1

CVE-2026-113787: Stored Cross-Site Scripting via Unescaped Style Attributes in odf-kit

CVE-2026-113787 is a stored Cross-Site Scripting (XSS) and HTML injection vulnerability affecting the odf-kit npm package from version 0.6.0 prior to 0.14.2. The HTML conversion engines (odtToHtml and odsToHtml) interpolate document-controlled styling and image attributes directly into inline style and src attributes without escaping double-quote characters. A remote attacker can supply a crafted .odt or .ods document to break out of HTML attribute boundaries and execute arbitrary JavaScript in the context of any web application rendering the converted HTML.

Alon Barad
Alon Barad
7 views•11 min read
•1 day ago•GHSA-M3QR-FVP4-78XJ
5.3

GHSA-m3qr-fvp4-78xj: Authentication Bypass and Log Disclosure in Basekick Labs Arc

GHSA-m3qr-fvp4-78xj is an authentication bypass and information disclosure vulnerability in Arc, an open-source, SQL-native time-series database developed by Basekick Labs and written in Go. Due to an improper route registration sequence within the Go Fiber HTTP server initialization pipeline, the application registered the /api/v1/logs endpoint prior to mounting the global authentication middleware. Because Fiber evaluates route handlers in strict declaration order and terminates request traversal when a handler returns without invoking c.Next(), unauthenticated remote callers can query the logs endpoint and retrieve up to 10,000 buffered operational log entries even when authentication is enabled.

Alon Barad
Alon Barad
10 views•8 min read
•1 day ago•CVE-2026-62848
7.3

CVE-2026-62848: Local Arbitrary Code Execution via Unsafe Deserialization in Metalama Named Pipe IPC

CVE-2026-62848 (GHSA-h26j-4vp7-x9w2) is a high-severity unsafe deserialization vulnerability in Metalama, a Roslyn-based meta-programming and code generation framework for C#. The flaw resides in the inter-process communication (IPC) channel used by Metalama within Microsoft Visual Studio. Across versions 2023.0 through 2026.1.18, the framework utilized either Newtonsoft.Json with TypeNameHandling.All or MessagePack with TypelessObjectResolver over local Windows named pipes without enforcing a strict type allow-list. Because the named pipes use predictable identifiers, any local process running under the same Windows user session can connect to the endpoint and transmit crafted serialized payloads, resulting in arbitrary Common Language Runtime (CLR) type instantiation and code execution within the host Visual Studio process.

Alon Barad
Alon Barad
10 views•9 min read
•1 day ago•GHSA-9PPR-WFW9-XVR2
5.3

GHSA-9ppr-wfw9-xvr2: DNS Cache TTL Manipulation Failure in Netfoil via Go Value-Copy Range Iteration

A logic flaw in github.com/tinfoil-factory/netfoil versions 0.3.0 through 0.6.0 prevents the DNS proxy from properly decrementing Time-To-Live (TTL) values on cached DNS responses and enforcing configured maximum TTL limits. Due to an idiomatic Go programming mistake where a range loop modifies value copies of slice elements rather than the underlying slice array, netfoil continually serves DNS answers with their original static TTLs. This condition causes downstream clients and resolvers to retain stale DNS records beyond their intended expiration window and bypasses local MaxTTL administrative policies.

Alon Barad
Alon Barad
8 views•10 min read