{"answers":{"affected":"3 open source packages ship an affected version, including serena-agent. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49471 exists.","fix":"Upgrade serena-agent to 1.5.2 or later.","what":"CVE-2026-49471 is a high-severity vulnerability in oraios serena, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49471 and fix it if it is affected.\n\nWhat it is: CVE-2026-49471 is a high-severity vulnerability in oraios serena, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49471 exists.\n\nAffected packages and fixed versions:\n- serena-agent (PyPI): affected all versions; fixed in 1.5.2\n- serena-agent (PyPI): affected all versions; fixed in 1.5.2\n- serena-agent (PyPI): affected all versions; fixed in 1.5.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49471/ (Markdown: https://insights.sbomify.com/CVE-2026-49471/index.md)","id":"CVE-2026-49471","markdown":"https://insights.sbomify.com/CVE-2026-49471/index.md","name":"CVE-2026-49471","record":{"aliases":["GHSA-37h2-6p4f-mp3q","PYSEC-2026-3061"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Serena MCP toolkit","requires_auth":"none","summary":"An attacker can achieve remote code execution by using DNS rebinding to exploit an unauthenticated Flask dashboard and poison agent memory.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"serena","vendor":"oraios-ai"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"description":"Serena is a powerful MCP toolkit for coding that provides semantic retrieval and editing capabilities. Prior to v1.5.2, Serena's built-in web dashboard exposes an unauthenticated Flask API on a fixed, predictable port, with no authentication, no CSRF protection, and no Host header validation. A DNS rebinding attack allows a malicious webpage to reach this API from any browser and write arbitrary content to the agent's persistent memory store, which the agent reads and acts on autonomously. Combined with execute_shell_command using shell=True, this creates a remote code execution chain requiring only that the victim visit a malicious webpage while Serena is running. This issue is fixed in version v1.5.2.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Serena: Unauthenticated Flask dashboard on fixed port enables DNS rebinding → memory poisoning → RCE","id":"CVE-2026-49471","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"csrf","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"FreeSWITCH includes a vulnerable function, PREFIX(prologTok)() from libexpat","id":"CVE-2026-49472"},"packages":[{"ecosystem":"PyPI","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"serena-agent","purl":null,"source":"GHSA-37h2-6p4f-mp3q"},{"ecosystem":"PyPI","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"serena-agent","purl":"pkg:pypi/serena-agent","source":"GHSA-37h2-6p4f-mp3q"},{"ecosystem":"PyPI","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"serena-agent","purl":"pkg:pypi/serena-agent","source":"PYSEC-2026-3061"}],"prev":{"headline":"GLPI: Missing Rate Limiting on Login and TOTP Verification — Account Takeover via Brute Force","id":"CVE-2026-49470"},"products":["serena"],"published":"2026-07-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["oraios"]},"summary":"An attacker can achieve remote code execution by using DNS rebinding to exploit an unauthenticated Flask dashboard and poison agent memory.","url":"https://insights.sbomify.com/CVE-2026-49471/"}