{"answers":{"affected":"3 open source packages ship an affected version, including cbor2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68131 exists.","fix":"Upgrade cbor2 to 5.8.0 or later.","what":"CVE-2025-68131 is a medium-severity vulnerability in agronholm cbor2, published on 31 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-68131 and fix it if it is affected.\n\nWhat it is: CVE-2025-68131 is a medium-severity vulnerability in agronholm cbor2, published on 31 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68131 exists.\n\nAffected packages and fixed versions:\n- cbor2 (PyPI): affected from 3.0.0; fixed in 5.8.0\n- cbor2 (PyPI): affected from 3.0.0; fixed in 5.8.0\n- cbor2 (PyPI): affected from 3.0.0; fixed in 5.8.0\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-2025-68131/ (Markdown: https://insights.sbomify.com/CVE-2025-68131/index.md)","id":"CVE-2025-68131","markdown":"https://insights.sbomify.com/CVE-2025-68131/index.md","name":"CVE-2025-68131","record":{"aliases":["AZL-73325","DEBIAN-CVE-2025-68131","GHSA-wcj4-jw5j-44wh","PYSEC-2025-90","ROOT-APP-PYPI-CVE-2025-68131","UBUNTU-CVE-2025-68131","openSUSE-SU-2026:10014-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python CBOR library","requires_auth":"none","summary":"Reusing a CBORDecoder instance allows attackers to read data from previous messages via shared references, leaking sensitive information across trust boundaries.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cbor2","vendor":"agronholm"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"}],"description":"cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) serialization format. Starting in version 3.0.0 and prior to version 5.8.0, whhen a CBORDecoder instance is reused across multiple decode operations, values marked with the shareable tag (28) persist in memory and can be accessed by subsequent CBOR messages using the sharedref tag (29). This allows an attacker-controlled message to read data from previously decoded messages if the decoder is reused across trust boundaries. Version 5.8.0 patches the issue.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"CBORDecoder reuse can leak shareable values across decode calls","id":"CVE-2025-68131","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"EVerest has out-of-bounds read in DZG_GSH01 SLIP CRC parser that can crash powermeter driver","id":"CVE-2025-68132"},"packages":[{"ecosystem":"PyPI","fixed":["5.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"cbor2","purl":null,"source":"GHSA-wcj4-jw5j-44wh"},{"ecosystem":"PyPI","fixed":["5.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"cbor2","purl":"pkg:pypi/cbor2","source":"GHSA-wcj4-jw5j-44wh"},{"ecosystem":"PyPI","fixed":["5.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"cbor2","purl":"pkg:pypi/cbor2","source":"PYSEC-2025-90"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.8.0-2.1"],"introduced":["0"],"last_affected":[],"package":"python-cbor2","purl":"pkg:rpm/opensuse/python-cbor2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10014-1"}],"prev":{"headline":"tRPC has possible prototype pollution in `experimental_nextAppDirCaller`","id":"CVE-2025-68130"},"products":["cbor2"],"published":"2025-12-31","related":[{"cvss_score":7.5,"headline":"cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads","id":"CVE-2026-26209","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":7.5,"headline":"cbor2 C extension decoder flaws can cause denial of service","id":"CVE-2025-64076","kev_date_added":null,"published":"2025-11-18"},{"cvss_score":7.5,"headline":"CBOR2 decoder has potential buffer overflow","id":"CVE-2024-26134","kev_date_added":null,"published":"2024-02-19"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-02","vendors":["agronholm"]},"summary":"Reusing a CBORDecoder instance allows attackers to read data from previous messages via shared references, leaking sensitive information across trust boundaries.","url":"https://insights.sbomify.com/CVE-2025-68131/"}