{"answers":{"affected":"6 open source packages ship an affected version, including soroban-sdk-macros. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-26267 in the wild and no public exploit code.","fix":"Upgrade soroban-sdk-macros to a fixed version for your release line: 22.0.10, 23.5.2 or 25.1.1.","what":"CVE-2026-26267 is a high-severity vulnerability in stellar rs-soroban-sdk, published on 19 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-26267 and fix it if it is affected.\n\nWhat it is: CVE-2026-26267 is a high-severity vulnerability in stellar rs-soroban-sdk, published on 19 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-26267 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- soroban-sdk-macros (crates.io): affected all versions; fixed in 22.0.10\n- soroban-sdk-macros (crates.io): affected all versions; fixed in 22.0.10\n- soroban-sdk-macros (crates.io): affected from 23.0.0; fixed in 23.5.2\n- soroban-sdk-macros (crates.io): affected from 23.0.0; fixed in 23.5.2\n- soroban-sdk-macros (crates.io): affected from 25.0.0; fixed in 25.1.1\n- soroban-sdk-macros (crates.io): affected from 25.0.0; fixed in 25.1.1\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-26267/ (Markdown: https://insights.sbomify.com/CVE-2026-26267/index.md)","id":"CVE-2026-26267","markdown":"https://insights.sbomify.com/CVE-2026-26267/index.md","name":"CVE-2026-26267","record":{"aliases":["GHSA-4chv-4c6w-w254"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust smart contract SDK","requires_auth":"none","summary":"A macro bug in the Soroban SDK causes inherent functions to override trait functions, potentially bypassing critical security checks in smart contracts.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rs-soroban-sdk","vendor":"stellar"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"description":"soroban-sdk is a Rust SDK for Soroban contracts. Prior to versions 22.0.10, 23.5.2, and 25.1.1, the `#[contractimpl]` macro contains a bug in how it wires up function calls. `#[contractimpl]` generates code that uses `MyContract::value()` style calls even when it's processing the trait version. This means if an inherent function is also defined with the same name, the inherent function gets called instead of the trait function. This means the Wasm-exported entry point silently calls the wrong function when two conditions are met simultaneously: First, an `impl Trait for MyContract` block is defined with one or more functions, with `#[contractimpl]` applied. Second, an `impl MyContract` block is defined with one or more identically named functions, without `#[contractimpl]` applied. If the trait version contains important security checks, such as verifying the caller is authorized, that the inherent version does not, those checks are bypassed. Anyone interacting with the contract through its public interface will call the wrong function. The problem is patched in `soroban-sdk-macros` versions 22.0.10, 23.5.2, and 25.1.1. The fix changes the generated call from `\u003cType\u003e::func()` to `\u003cType as Trait\u003e::func()` when processing trait implementations, ensuring Rust resolves to the trait associated function regardless of whether an inherent function with the same name exists. Users should upgrade to `soroban-sdk-macros` 22.0.10, 23.5.2, or 25.1.1 and recompile their contracts. If upgrading is not immediately possible, contract developers can avoid the issue by ensuring that no inherent associated function on the contract type shares a name with any function in the trait implementation. Renaming or removing the conflicting inherent function eliminates the ambiguity and causes the macro-generated code to correctly resolve to the trait function.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"rs-soroban-sdk #[contractimpl] macro calls inherent function instead of trait function when names collide","id":"CVE-2026-26267","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":6,"n_references":5,"next":{"headline":"Cursor sandbox escape via Git hooks","id":"CVE-2026-26268"},"packages":[{"ecosystem":"crates.io","fixed":["22.0.10"],"introduced":["0"],"last_affected":[],"package":"soroban-sdk-macros","purl":null,"source":"GHSA-4chv-4c6w-w254"},{"ecosystem":"crates.io","fixed":["22.0.10"],"introduced":["0"],"last_affected":[],"package":"soroban-sdk-macros","purl":"pkg:cargo/soroban-sdk-macros","source":"GHSA-4chv-4c6w-w254"},{"ecosystem":"crates.io","fixed":["23.5.2"],"introduced":["23.0.0"],"last_affected":[],"package":"soroban-sdk-macros","purl":null,"source":"GHSA-4chv-4c6w-w254"},{"ecosystem":"crates.io","fixed":["23.5.2"],"introduced":["23.0.0"],"last_affected":[],"package":"soroban-sdk-macros","purl":"pkg:cargo/soroban-sdk-macros","source":"GHSA-4chv-4c6w-w254"},{"ecosystem":"crates.io","fixed":["25.1.1"],"introduced":["25.0.0"],"last_affected":[],"package":"soroban-sdk-macros","purl":null,"source":"GHSA-4chv-4c6w-w254"},{"ecosystem":"crates.io","fixed":["25.1.1"],"introduced":["25.0.0"],"last_affected":[],"package":"soroban-sdk-macros","purl":"pkg:cargo/soroban-sdk-macros","source":"GHSA-4chv-4c6w-w254"}],"prev":{"headline":"AliasVault affected by Cross-Site Scripting (XSS) via Email HTML Rendering","id":"CVE-2026-26266"},"products":["rs-soroban-sdk"],"published":"2026-02-19","related":[{"cvss_score":5.3,"headline":"soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction","id":"CVE-2026-32322","kev_date_added":null,"published":"2026-03-12"},{"cvss_score":5.3,"headline":"soroban-sdk has overflow in Bytes::slice, Vec::slice, GenRange::gen_range for u64","id":"CVE-2026-24889","kev_date_added":null,"published":"2026-01-28"}],"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":"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-19","vendors":["stellar"]},"summary":"A macro bug in the Soroban SDK causes inherent functions to override trait functions, potentially bypassing critical security checks in smart contracts.","url":"https://insights.sbomify.com/CVE-2026-26267/"}