{"answers":{"affected":"6 open source packages ship an affected version, including github.com/gotenberg/gotenberg/v7 and github.com/gotenberg/gotenberg/v8. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42597 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-42597 is a medium-severity server-side request forgery vulnerability in gotenberg, published on 14 May 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-42597 and fix it if it is affected.\n\nWhat it is: CVE-2026-42597 is a medium-severity server-side request forgery vulnerability in gotenberg, published on 14 May 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-2026-42597 exists.\n\nAffected packages and fixed versions:\n- github.com/gotenberg/gotenberg/v7 (Go): affected all versions; no fix listed\n- github.com/gotenberg/gotenberg/v7 (Go): affected all versions up to 7.10.2; no fix listed\n- github.com/gotenberg/gotenberg/v7 (Go): affected all versions up to 7.10.2; no fix listed\n- github.com/gotenberg/gotenberg/v8 (Go): affected all versions; fixed in 8.32.0\n- github.com/gotenberg/gotenberg/v8 (Go): affected all versions; fixed in 8.32.0\n- github.com/gotenberg/gotenberg/v8 (Go): affected all versions; fixed in 8.32.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-2026-42597/ (Markdown: https://insights.sbomify.com/CVE-2026-42597/index.md)","id":"CVE-2026-42597","markdown":"https://insights.sbomify.com/CVE-2026-42597/index.md","name":"CVE-2026-42597","record":{"aliases":["GHSA-g924-cjx7-2rjw","GO-2026-5395"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"PDF conversion API","requires_auth":"none","summary":"Attackers can read arbitrary files from /tmp via file:// scheme in URL conversion routes, exposing other users' data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gotenberg","vendor":"thecodingmachine"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/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-73","name":"External Control of File Name or Path"}],"description":"Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.32.0, the /forms/chromium/convert/url and /forms/chromium/screenshot/url routes accept url=file:///tmp/... from anonymous callers. The default Chromium deny-list intentionally exempts file:///tmp/ so HTML/Markdown routes can load their own request-local assets, and those routes apply a per-request AllowedFilePrefixes guard to scope the read. The URL routes never set AllowedFilePrefixes, so the scope guard silently skips. Alice enumerates /tmp/, walks Gotenberg's per-request working directories, and reads the raw source files of other in-flight conversions as rendered PDF output. This vulnerability is fixed in 8.32.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Gotenberg: Chromium URL conversion routes read arbitrary files under /tmp via file:// scheme","id":"CVE-2026-42597","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"Pode: Directory Traversal is possible on Static Routes","id":"CVE-2026-42598"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gotenberg/gotenberg/v7","purl":"pkg:golang/github.com/gotenberg/gotenberg/v7","source":"GO-2026-5395"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["7.10.2"],"package":"github.com/gotenberg/gotenberg/v7","purl":null,"source":"GHSA-g924-cjx7-2rjw"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["7.10.2"],"package":"github.com/gotenberg/gotenberg/v7","purl":"pkg:golang/github.com/gotenberg/gotenberg/v7","source":"GHSA-g924-cjx7-2rjw"},{"ecosystem":"Go","fixed":["8.32.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gotenberg/gotenberg/v8","purl":null,"source":"GHSA-g924-cjx7-2rjw"},{"ecosystem":"Go","fixed":["8.32.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"GHSA-g924-cjx7-2rjw"},{"ecosystem":"Go","fixed":["8.32.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"GO-2026-5395"}],"prev":{"headline":"Gotenberg: Unauthenticated SSRF via default deny-list bypass in downloadFrom and webhook","id":"CVE-2026-42596"},"products":["gotenberg"],"published":"2026-05-14","related":[{"cvss_score":10,"headline":"Gotenberg vulnerable to argument injection via newlines in ExifTool metadata values","id":"CVE-2026-40281","kev_date_added":null,"published":"2026-05-06"},{"cvss_score":9.8,"headline":"Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection","id":"CVE-2026-42589","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2020-13450","kev_date_added":null,"published":"2021-01-07"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2020-13451","kev_date_added":null,"published":"2021-01-07"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2020-13452","kev_date_added":null,"published":"2021-01-07"},{"cvss_score":9.4,"headline":"Gotenberg: Unauthenticated SSRF via default deny-list bypass in downloadFrom and webhook","id":"CVE-2026-42596","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":8.7,"headline":"Gotenberg has a ReDoS via extraHttpHeaders scope feature","id":"CVE-2026-35458","kev_date_added":null,"published":"2026-04-07"}],"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":"Go Vulnerability Database","prefix":"GO"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-14","vendors":["gotenberg"]},"summary":"Attackers can read arbitrary files from /tmp via file:// scheme in URL conversion routes, exposing other users' data.","url":"https://insights.sbomify.com/CVE-2026-42597/"}