{"answers":{"affected":"2 open source packages ship an affected version, including seroval.","exploited":"There is no known exploitation of CVE-2026-59940 in the wild and no public exploit code.","fix":"Upgrade seroval to 1.5.3 or later.","what":"CVE-2026-59940 is a critical unsafe deserialization vulnerability in lxsmnsyc seroval, published on 18 Aug 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-59940 and fix it if it is affected.\n\nWhat it is: CVE-2026-59940 is a critical unsafe deserialization vulnerability in lxsmnsyc seroval, published on 18 Aug 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-59940 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- seroval (npm): affected all versions; fixed in 1.5.3\n- seroval (npm): affected all versions; fixed in 1.5.3\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-59940/ (Markdown: https://insights.sbomify.com/CVE-2026-59940/index.md)","id":"CVE-2026-59940","markdown":"https://insights.sbomify.com/CVE-2026-59940/index.md","name":"CVE-2026-59940","record":{"aliases":["GHSA-mv8w-475r-vwqw","ROOT-APP-NPM-CVE-2026-59940"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript serialization library","requires_auth":"none","summary":"Attacker-controlled JSON can trigger unintended method invocations during deserialization, potentially leading to remote code execution in applications using seroval with plugins.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.5.3, seroval.fromJSON() allows attacker-controlled JSON Promise control nodes to operate on values from the general deserialization reference table without verifying genuine internal Promise resolver records, causing deserialization side effects with plugins enabled and potentially unintended server-side invocation or remote code execution when downstream frameworks register callable wrappers. This issue is fixed in version 1.5.3.","ecosystems":["npm"],"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":"seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization","id":"CVE-2026-59940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Dompdf: Uncontrolled resource consumption based on declared BMP dimensions","id":"CVE-2026-59941"},"packages":[{"ecosystem":"npm","fixed":["1.5.3"],"introduced":["0"],"last_affected":[],"package":"seroval","purl":null,"source":"GHSA-mv8w-475r-vwqw"},{"ecosystem":"npm","fixed":["1.5.3"],"introduced":["0"],"last_affected":[],"package":"seroval","purl":"pkg:npm/seroval","source":"GHSA-mv8w-475r-vwqw"}],"prev":{"headline":"httplib2: Decompression Bomb Denial of Service via Unbounded gzip/deflate Response Handling","id":"CVE-2026-59939"},"products":["seroval"],"published":"2026-08-18","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-18","vendors":["lxsmnsyc"]},"summary":"Attacker-controlled JSON can trigger unintended method invocations during deserialization, potentially leading to remote code execution in applications using seroval with plugins.","url":"https://insights.sbomify.com/CVE-2026-59940/"}