8.6
CWE
200
Advisory Published
Updated

CVE-2025-31491: AutoGPT allows leakage of cross-domain cookies and protected headers in requests redirect

First published: Mon Apr 14 2025(Updated: )

AutoGPT is a platform that allows users to create, deploy, and manage continuous artificial intelligence agents that automate complex workflows. Prior to 0.6.1, AutoGPT allows of leakage of cross-domain cookies and protected headers in requests redirect. AutoGPT uses a wrapper around the requests python library, located in autogpt_platform/backend/backend/util/request.py. In this wrapper, redirects are specifically NOT followed for the first request. If the wrapper is used with allow_redirects set to True (which is the default), any redirect is not followed by the initial request, but rather re-requested by the wrapper using the new location. However, there is a fundamental flaw in manually re-requesting the new location: it does not account for security-sensitive headers which should not be sent cross-origin, such as the Authorization and Proxy-Authorization header, and cookies. For example in autogpt_platform/backend/backend/blocks/github/_api.py, an Authorization header is set when retrieving data from the GitHub API. However, if GitHub suffers from an open redirect vulnerability (such as the made-up example of https://api.github.com/repos/{owner}/{repo}/issues/comments/{comment_id}/../../../../../redirect/?url=https://joshua.hu/), and the script can be coerced into visiting it with the Authorization header, the GitHub credentials in the Authorization header will be leaked. This allows leaking auth headers and private cookies. This vulnerability is fixed in 0.6.1.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
AutoGPT<0.6.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-31491?

    CVE-2025-31491 has a medium severity rating due to the potential leakage of sensitive cross-domain cookies and protected headers.

  • How do I fix CVE-2025-31491?

    To fix CVE-2025-31491, update AutoGPT to version 0.6.1 or later.

  • What impact does CVE-2025-31491 have on users?

    CVE-2025-31491 can lead to unauthorized access to sensitive information through cross-domain cookie leakage.

  • Is CVE-2025-31491 present in versions after 0.6.1 of AutoGPT?

    No, CVE-2025-31491 is only present in versions prior to 0.6.1 of AutoGPT.

  • Who is affected by CVE-2025-31491?

    Any user of AutoGPT version 0.6.1 or earlier is potentially affected by CVE-2025-31491.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203