{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-46540 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-46540 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-46540 is a medium-severity vulnerability in nimiq core-rs-albatross, published on 9 Jun 2026."},"fix_prompt":"Check this codebase for CVE-2026-46540 and fix it if it is affected.\n\nWhat it is: CVE-2026-46540 is a medium-severity vulnerability in nimiq core-rs-albatross, published on 9 Jun 2026. \nExploitation: There is no known exploitation of CVE-2026-46540 in the wild and no public exploit code.\n\nAffected product: nimiq core-rs-albatross. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-46540/ (Markdown: https://insights.sbomify.com/CVE-2026-46540/index.md)","id":"CVE-2026-46540","markdown":"https://insights.sbomify.com/CVE-2026-46540/index.md","name":"CVE-2026-46540","record":{"aliases":["GHSA-m3pg-qc2q-mg8c"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-841","name":"Improper Enforcement of Behavioral Workflow"}],"description":"Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.4.0, when LightBlockchain::rebranch() adopts a fork chain whose tip is a macro block (checkpoint or election), it only updates self.head but fails to update self.macro_head, self.election_head, self.current_validators, or store the election header in the chain_store. This is in direct contrast with the full Blockchain::rebranch() at blockchain/src/blockchain/push.rs:504-518, which correctly updates all macro/election state when the new head is a macro block. After a rebranch to a macro block, the stale macro_head causes subsequent macro blocks pushed via push() to be verified against the wrong predecessor via verify_macro_successor(\u0026this.macro_head). If the rebranch target was an election block, the stale current_validators causes every subsequent block to fail verify_validators(), completely stalling the light client's chain progression. This issue has been patched in version 1.4.0.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Nimiq light-blockchain: Light blockchain rebranch issue","id":"CVE-2026-46540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Nimiq network-libp2p: DHT query poisoning via first-record verification failure","id":"CVE-2026-46541"},"packages":[],"prev":{"headline":"nimiq-primitives: BlockInclusionProof interlink issue when hops are empty","id":"CVE-2026-46539"},"products":["core-rs-albatross"],"published":"2026-06-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-06-10","vendors":["nimiq"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-46540/"}