CVE-2026-92359
Permissive CORS policy in ag-ui-protocol 0.3.0's create_strands_app allows untrusted domains.
- CVSS 2.3
- CWE-942
- Authentication, Authorization, and Session Management
- Remote
A security flaw has been discovered in ag-ui-protocol ag-ui 0.3.0. The affected element is the function create_strands_app of the file integrations/aws-strands/python/src/ag_ui_strands/utils.py of the component CORSMiddleware. The manipulation results in permissive cross-domain policy with untrusted domains. The attack may be launched remotely. The attack requires a high level of complexity. The exploitability is described as difficult. Upgrading to version AGUI.Abstractions@0.0.6 is sufficient to fix this issue. The patch is identified as 9b143b9668fa52c2054ede9d34a45ac4b4401089. It is suggested to upgrade the affected component.
- CWE
- CWE-942
- CVSS base score
- 2.3
- Published
- 2026-09-16
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Check
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade the component to AGUI.Abstractions @ 0.0.6.
Vulnerable code sample
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
def create_strands_app() -> FastAPI:
app = FastAPI()
# VULNERABLE: permissive CORS allowing any origin
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
return appPatched code sample
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
def create_strands_app() -> FastAPI:
app = FastAPI()
# FIX: restrict CORS to trusted domains
trusted_origins = ["https://example.com", "https://api.example.com"]
app.add_middleware(
CORSMiddleware,
allow_origins=trusted_origins,
allow_credentials=True,
allow_methods=["GET", "POST"],
allow_headers=["Authorization", "Content-Type"],
)
return appPublished fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- fix(aws-strands): harden endpoints without breaking CORS (ag-ui-protocol/ag-ui)
integrations/aws-strands/python/src/ag_ui_strands/endpoint.py,integrations/aws-strands/python/src/ag_ui_strands/endpoint.py · add_strands_fastapi_endpoint,integrations/aws-strands/python/src/ag_ui_strands/utils.py,integrations/aws-strands/python/src/ag_ui_strands/utils.py · create_strands_app
Cite this entry
@misc{vaitp:cve202692359,
title = {{Permissive CORS policy in ag-ui-protocol 0.3.0's create_strands_app allows untrusted domains.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-92359},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-92359/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
