{"answers":{"affected":"2 open source packages ship an affected version, including saloonphp/saloon. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33942 in the wild and no public exploit code.","fix":"Upgrade saloonphp/saloon to 4.0.0 or later.","what":"CVE-2026-33942 is a high-severity unsafe deserialization vulnerability in saloonphp saloon, published on 26 Mar 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-33942 and fix it if it is affected.\n\nWhat it is: CVE-2026-33942 is a high-severity unsafe deserialization vulnerability in saloonphp saloon, published on 26 Mar 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-33942 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- saloonphp/saloon (Packagist): affected all versions; fixed in 4.0.0\n- saloonphp/saloon (Packagist): affected all versions; fixed in 4.0.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-2026-33942/ (Markdown: https://insights.sbomify.com/CVE-2026-33942/index.md)","id":"CVE-2026-33942","markdown":"https://insights.sbomify.com/CVE-2026-33942/index.md","name":"CVE-2026-33942","record":{"aliases":["CVE-2026-33181","GHSA-rf88-776r-rcq9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP API library","requires_auth":"none","summary":"An attacker can achieve remote code execution by supplying malicious serialized data to the OAuth token authenticator in this PHP library.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"saloon","vendor":"saloon"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Saloon is a PHP library that gives users tools to build API integrations and SDKs. Versions prior to 4.0.0 used PHP's unserialize() in AccessTokenAuthenticator::unserialize() to restore OAuth token state from cache or storage, with allowed_classes =\u003e true. An attacker who can control the serialized string (e.g. by overwriting a cached token file or via another injection) can supply a serialized \"gadget\" object. When unserialize() runs, PHP instantiates that object and runs its magic methods (__wakeup, __destruct, etc.), leading to object injection. In environments with common dependencies (e.g. Monolog), this can be chained to remote code execution (RCE). The fix in version 4.0.0 removes PHP serialization from the AccessTokenAuthenticator class requiring users to store and resolve the authenticator manually.","ecosystems":["Packagist"],"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":"Saloon has insecure deserialization in AccessTokenAuthenticator (object injection / RCE)","id":"CVE-2026-33942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code","id":"CVE-2026-33943"},"packages":[{"ecosystem":"Packagist","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"saloonphp/saloon","purl":null,"source":"GHSA-rf88-776r-rcq9"},{"ecosystem":"Packagist","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"saloonphp/saloon","purl":"pkg:composer/saloonphp/saloon","source":"GHSA-rf88-776r-rcq9"}],"prev":{"headline":"Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options","id":"CVE-2026-33941"},"products":["saloon"],"published":"2026-03-26","related":[{"cvss_score":8,"headline":"Saloon has a Fixture Name Path Traversal Vulnerability","id":"CVE-2026-33183","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":6.6,"headline":"Saloon is vulnerable to SSRF and credential leakage via absolute URL in endpoint overriding base URL","id":"CVE-2026-33182","kev_date_added":null,"published":"2026-03-26"}],"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":"total"},"state":"PUBLISHED","updated":"2026-03-28","vendors":["saloonphp"]},"summary":"An attacker can achieve remote code execution by supplying malicious serialized data to the OAuth token authenticator in this PHP library.","url":"https://insights.sbomify.com/CVE-2026-33942/"}