{"answers":{"affected":"2 open source packages ship an affected version, including fish.payara.distributions:payara.","exploited":"There is no known exploitation of CVE-2026-12986 in the wild and no public exploit code.","fix":"Upgrade fish.payara.distributions:payara to 7.2026.6 or later.","what":"CVE-2026-12986 is a high-severity server-side request forgery vulnerability in Payara Server, published on 24 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-12986 and fix it if it is affected.\n\nWhat it is: CVE-2026-12986 is a high-severity server-side request forgery vulnerability in Payara Server, published on 24 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-12986 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fish.payara.distributions:payara (Maven): affected from 4.0.0; fixed in 7.2026.6\n- fish.payara.distributions:payara (Maven): affected from 4.0.0; fixed in 7.2026.6\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-12986/ (Markdown: https://insights.sbomify.com/CVE-2026-12986/index.md)","id":"CVE-2026-12986","markdown":"https://insights.sbomify.com/CVE-2026-12986/index.md","name":"CVE-2026-12986","record":{"aliases":["GHSA-x939-7fq5-v9v6"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Payara Server","requires_auth":"none","summary":"An SSRF and CSRF flaw in Payara Server allows attackers to steal admin tokens and gain full administrative control, leading to arbitrary code execution.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Payara","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/S:P/AU:Y/R:U/V:C/RE:M/U:Amber","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"A critical vulnerability in Admin GUI in Payara Server Full 4.x, 5.x, 6.x, 7.x, 7.2026.x, 6.2025.x, 6.2024.x on All platforms that allows the attacker to leak the admin gfresttoken to an attacker-controlled host that can result in a full unauthenticated takeover of Payara admin domain.\n\nA Server-Side Request Forgery (SSRF) vulnerability in the DownloadServlet of the Admin GUI in Payara Server allows a remote attacker to exfiltrate the administrator's REST session token (gfresttoken) to an attacker-controlled host via a crafted request URL. Combined with the absence of CSRF protection on DownloadServlet, an unauthenticated attacker can trick a logged-in administrator into triggering the token leak, then replay the stolen token to gain full administrative access to the Payara domain, leading to arbitrary code execution via WAR deployment. The vulnerability exists in the DownloadServlet and associated ContentSource implementations (LogViewerContentSource, LogFilesContentSource, LBConfigContentSource, ClientStubsContentSource) within the admingui:console-common module.","ecosystems":["Maven"],"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":"Payara Server Full has a Cross-Site Request Forgery vulnerability","id":"CVE-2026-12986","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Events Manager \u003c 7.3.7 - Unauthenticated SQL Injection via PHP Object Injection in Booking Registration","id":"CVE-2026-12987"},"packages":[{"ecosystem":"Maven","fixed":["7.2026.6"],"introduced":["4.0.0"],"last_affected":[],"package":"fish.payara.distributions:payara","purl":null,"source":"GHSA-x939-7fq5-v9v6"},{"ecosystem":"Maven","fixed":["7.2026.6"],"introduced":["4.0.0"],"last_affected":[],"package":"fish.payara.distributions:payara","purl":"pkg:maven/fish.payara.distributions/payara","source":"GHSA-x939-7fq5-v9v6"}],"prev":{"headline":"Mattermost DCR redirect URI allowlist bypass via improper URL component validation","id":"CVE-2026-12985"},"products":["Payara Server"],"published":"2026-06-24","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":"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-06-24","vendors":["Payara"]},"summary":"An SSRF and CSRF flaw in Payara Server allows attackers to steal admin tokens and gain full administrative control, leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2026-12986/"}