{"answers":{"affected":"3 open source packages ship an affected version, including crawl4ai. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-56258 in the wild and no public exploit code.","fix":"Upgrade crawl4ai to 0.8.8 or later.","what":"CVE-2026-56258 is a critical path traversal vulnerability in Crawl4AI, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-56258 and fix it if it is affected.\n\nWhat it is: CVE-2026-56258 is a critical path traversal vulnerability in Crawl4AI, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-56258 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- crawl4ai (PyPI): affected all versions; fixed in 0.8.8\n- crawl4ai (PyPI): affected all versions; fixed in 0.8.8\n- crawl4ai (PyPI): affected all versions; fixed in 0.8.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-56258/ (Markdown: https://insights.sbomify.com/CVE-2026-56258/index.md)","id":"CVE-2026-56258","markdown":"https://insights.sbomify.com/CVE-2026-56258/index.md","name":"CVE-2026-56258","record":{"aliases":["GHSA-7cx2-g3h9-382p","GHSA-wx2c-3cp2-f6qw","PYSEC-2026-228"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web crawler library","requires_auth":"none","summary":"Unauthenticated attackers can write arbitrary files via symlink and TOCTOU flaws in Crawl4AI, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"crawl4ai","vendor":"kidocode"}],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Crawl4AI before 0.8.8 contains an arbitrary file write vulnerability in the screenshot and PDF endpoints that allows unauthenticated attackers to write files outside the intended directory via symlink and time-of-check-time-of-use (TOCTOU) attacks on the output_path parameter. Remote attackers can exploit insufficient path validation and symlink following to achieve arbitrary file write and potential code execution on systems where the runtime user has write access to executable or cron locations.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Crawl4AI - Arbitrary File Write via output_path Symlink and TOCTOU","id":"CVE-2026-56258","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Crawl4AI - LLM Credential Exfiltration via base_url and Environment Variable Resolution","id":"CVE-2026-56259"},"packages":[{"ecosystem":"PyPI","fixed":["0.8.8"],"introduced":["0"],"last_affected":[],"package":"crawl4ai","purl":null,"source":"GHSA-7cx2-g3h9-382p"},{"ecosystem":"PyPI","fixed":["0.8.8"],"introduced":["0"],"last_affected":[],"package":"crawl4ai","purl":"pkg:pypi/crawl4ai","source":"GHSA-7cx2-g3h9-382p"},{"ecosystem":"PyPI","fixed":["0.8.8"],"introduced":["0"],"last_affected":[],"package":"crawl4ai","purl":"pkg:pypi/crawl4ai","source":"PYSEC-2026-228"}],"prev":{"headline":"Capgo - Authorization Bypass in App Ownership Transfer via Direct PostgREST Update","id":"CVE-2026-56257"},"products":["Crawl4AI"],"published":"2026-06-23","related":[{"cvss_score":10,"headline":"Crawl4AI: Unauthenticated RCE via Chromium launch-argument injection in browser_config.extra_args","id":"CVE-2026-57572","kev_date_added":null,"published":"2026-07-06"},{"cvss_score":10,"headline":"Crawl4AI \u003c 0.8.0 Docker API Unauthenticated Remote Code Execution via Hooks Parameter","id":"CVE-2026-26216","kev_date_added":null,"published":"2026-02-12"},{"cvss_score":9.8,"headline":"Crawl4AI: AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Docker API","id":"CVE-2026-53753","kev_date_added":null,"published":"2026-06-23"},{"cvss_score":9.6,"headline":"Crawl4AI arbitrary file write via download filename path traversal","id":"CVE-2026-57571","kev_date_added":null,"published":"2026-07-06"},{"cvss_score":9.3,"headline":"Crawl4AI - Authentication Bypass via Hardcoded JWT Signing Key","id":"CVE-2026-56265","kev_date_added":null,"published":"2026-06-21"},{"cvss_score":9.2,"headline":"Crawl4AI - Server-Side Request Forgery via Webhook URLs","id":"CVE-2026-56261","kev_date_added":null,"published":"2026-07-10"},{"cvss_score":9.2,"headline":"Crawl4AI - Arbitrary JavaScript Execution via /execute_js Endpoint","id":"CVE-2026-56264","kev_date_added":null,"published":"2026-06-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-14","vendors":["Crawl4AI"]},"summary":"Unauthenticated attackers can write arbitrary files via symlink and TOCTOU flaws in Crawl4AI, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-56258/"}