{"id":"CVE-2026-56840","summary":"PraisonAI: HTTPApproval dashboard renders tool arguments as raw HTML, allowing approval-page XSS to approve dangerous tools","details":"PraisonAI is a multi-agent teams system. From version 4.5.2 to before version 4.6.59, praisonai.bots.HTTPApproval renders pending tool approval arguments directly into the approval dashboard HTML. An attacker-controlled tool argument can inject JavaScript into that page. When a human opens the approval URL to inspect the risky tool request, the script runs in the dashboard origin and can POST to the same request's /approve/{request_id}/decide endpoint, causing HTTPApproval to return approved=True. This issue has been patched in version 4.6.59.","aliases":["GHSA-63v4-w882-g4x2","PYSEC-2026-3503"],"modified":"2026-10-30T02:31:14.655511719Z","published":"2026-10-23T11:58:24.568Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56840.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56840.json"},{"type":"ADVISORY","url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-63v4-w882-g4x2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56840"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mervinpraison/praisonai","events":[{"introduced":"8ddbb4ee7152d3fa68fbaaf6e6c610ae03d938d3"},{"fixed":"f834d4244823481244f97ebc44b06ab59cc0079a"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"4.5.2"},{"fixed":"4.6.59"}]},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"fixed":"4.6.59"}]}]}}],"versions":["v4.6.58","v4.6.57","v4.6.56","v4.6.55","v4.6.54","v4.6.53","v4.6.52","v4.6.51","v4.6.50","v4.6.48","v4.6.47","v4.6.46","v4.6.45","v4.6.44","v4.6.43","v4.6.42","v4.6.41","v4.6.40","v4.6.39","v4.6.38","v4.6.37","v4.6.36","v4.6.35","v4.6.34","v4.6.33","v4.6.32","v4.6.31","v4.6.30","v4.6.29","v4.6.28","v4.6.27","v4.6.26","v4.6.25","v4.6.24","v4.6.23","v4.6.22","v4.6.21","v4.6.20","v4.6.19","v4.6.18","v4.6.16","v4.6.15","v4.6.14","v4.6.13","v4.6.12","v4.6.11","v4.6.10","v4.6.9","v4.5.149","v4.6.7","v4.6.6","v4.6.5","v4.6.4","v4.6.3","v4.6.2","v4.6.1","v4.5.148","v4.5.147","v4.5.146","v4.5.145","v4.5.144","v4.5.143","v4.5.140","v4.5.134","v4.5.133","v4.5.132","v4.5.131","v4.5.130","v4.5.129","v4.5.126","v4.5.128","v4.5.125","v4.5.124","v4.5.123","v4.5.122","v4.5.121","v4.5.120","v4.5.119","v4.5.118","v4.5.117","v4.5.115","v4.5.113","v4.5.112","v4.5.111","v4.5.110","v4.5.109","v4.5.108","v4.5.107","v4.5.106","v4.5.105","v4.5.104","v4.5.103","v4.5.102","v4.5.101","v4.5.100","v4.5.98","v4.5.96","v4.5.97","v4.5.95","v4.5.94","v4.5.93","v4.5.90","v4.5.88","v4.5.87","v4.5.85","v4.5.83","v4.5.82","v4.5.81","v4.5.80","v4.5.79","v4.5.78","v4.5.77","v4.5.76","v4.5.74","v4.5.73","v4.5.72","v4.5.71","v4.5.70","v4.5.69","v4.5.68","v4.5.67","v4.5.65","v4.5.64","v4.5.63","v4.5.62","v4.5.60","v4.5.59","v4.5.58","v4.5.57","v4.5.56","v4.5.55","v4.5.54","v4.5.52","v4.5.51","v4.5.49","v4.5.48","v4.5.46","v4.5.45","v4.5.44","v4.5.43","v4.5.42","v4.5.41","v4.5.40","v4.5.39","v4.5.38","v4.5.37","v4.5.36","v4.5.35","v4.5.34","v4.5.33","v4.5.32","v4.5.31","v4.5.30","v4.5.29","v4.5.28","v4.5.27","v4.5.26","v4.5.25","v4.5.24","v4.5.23","v4.5.22","v4.5.21","v4.5.20","v4.5.19","v4.5.18","v4.5.17","v4.5.16","v4.5.15","v4.5.14","v4.5.13","v4.5.12","v4.5.11","v4.5.10","v4.5.9","v4.5.8","v4.5.7","v4.5.6","v4.5.5","v4.5.3","v4.5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56840.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}