{"answers":{"affected":"3 open source packages ship an affected version, including weasyprint. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68616 exists.","fix":"Upgrade weasyprint to 68.0 or later.","what":"CVE-2025-68616 is a high-severity server-side request forgery vulnerability in Kozea WeasyPrint, published on 19 Jan 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-2025-68616 and fix it if it is affected.\n\nWhat it is: CVE-2025-68616 is a high-severity server-side request forgery vulnerability in Kozea WeasyPrint, published on 19 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68616 exists.\n\nAffected packages and fixed versions:\n- weasyprint (PyPI): affected all versions; fixed in 68.0\n- weasyprint (PyPI): affected all versions; fixed in 68.0\n- weasyprint (PyPI): affected all versions; fixed in 68.0\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-2025-68616/ (Markdown: https://insights.sbomify.com/CVE-2025-68616/index.md)","id":"CVE-2025-68616","markdown":"https://insights.sbomify.com/CVE-2025-68616/index.md","name":"CVE-2025-68616","record":{"aliases":["DEBIAN-CVE-2025-68616","GHSA-983w-rhvv-gwmv","PYSEC-2026-2034","UBUNTU-CVE-2025-68616","openSUSE-SU-2026:10079-1","openSUSE-SU-2026:20069-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python PDF library","requires_auth":"none","summary":"Attackers can bypass SSRF protections in WeasyPrint to access internal network resources via HTTP redirects, exposing sensitive data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"weasyprint","vendor":"kozea"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"WeasyPrint helps web developers to create PDF documents. Prior to version 68.0, a server-side request forgery (SSRF) protection bypass exists in WeasyPrint's `default_url_fetcher`. The vulnerability allows attackers to access internal network resources (such as `localhost` services or cloud metadata endpoints) even when a developer has implemented a custom `url_fetcher` to block such access. This occurs because the underlying `urllib` library follows HTTP redirects automatically without re-validating the new destination against the developer's security policy. Version 68.0 contains a patch for the issue.","ecosystems":["PyPI","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2026-07-18","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-18T20:00:50Z","kind":"github_poc","ref":"https://github.com/rauljvc8/CVE-2025-68616-Detecting-and-Patching-an-SSRF-in-WeasyPrint-with-Wazuh","stars":0,"title":"Hands-on vulnerability management case study: how Wazuh flagged a real SSRF (CVE-2025-68616) in WeasyPrint, and how I reproduced and patched it."}],"tier":"weaponised"},"has_fix":true,"headline":"WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect","id":"CVE-2025-68616","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":5,"n_references":2,"next":{"headline":"Use after free in fluidsynth","id":"CVE-2025-68617"},"packages":[{"ecosystem":"PyPI","fixed":["68.0"],"introduced":["0"],"last_affected":[],"package":"weasyprint","purl":null,"source":"GHSA-983w-rhvv-gwmv"},{"ecosystem":"PyPI","fixed":["68.0"],"introduced":["0"],"last_affected":[],"package":"weasyprint","purl":"pkg:pypi/weasyprint","source":"GHSA-983w-rhvv-gwmv"},{"ecosystem":"PyPI","fixed":["68.0"],"introduced":["0"],"last_affected":[],"package":"weasyprint","purl":"pkg:pypi/weasyprint","source":"PYSEC-2026-2034"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["65.1-bp160.2.1"],"introduced":["0"],"last_affected":[],"package":"python-weasyprint","purl":"pkg:rpm/opensuse/python-weasyprint\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20069-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["68.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-weasyprint","purl":"pkg:rpm/opensuse/python-weasyprint\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10079-1"}],"prev":{"headline":"Net-SNMP snmptrapd crash","id":"CVE-2025-68615"},"products":["WeasyPrint"],"published":"2026-01-19","related":[],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["Kozea"]},"summary":"Attackers can bypass SSRF protections in WeasyPrint to access internal network resources via HTTP redirects, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2025-68616/"}