{"answers":{"affected":"2 open source packages ship an affected version, including flatted. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33228 exists.","fix":"Upgrade flatted to 3.4.2 or later.","what":"CVE-2026-33228 is a high-severity vulnerability in WebReflection flatted, published on 20 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-33228 and fix it if it is affected.\n\nWhat it is: CVE-2026-33228 is a high-severity vulnerability in WebReflection flatted, published on 20 Mar 2026. 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-2026-33228 exists.\n\nAffected packages and fixed versions:\n- flatted (npm): affected all versions; fixed in 3.4.2\n- flatted (npm): affected all versions; fixed in 3.4.2\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-33228/ (Markdown: https://insights.sbomify.com/CVE-2026-33228/index.md)","id":"CVE-2026-33228","markdown":"https://insights.sbomify.com/CVE-2026-33228/index.md","name":"CVE-2026-33228","record":{"aliases":["AZL-80309","CLEANSTART-2026-PL93650","CLEANSTART-2026-SB96942","CLSA-2026-1791278813","DEBIAN-CVE-2026-33228","GHSA-rf6f-7fwh-wjgh","MINI-5xq4-wfwf-8jqg","MINI-7559-ch5v-xjff","MINI-j24h-9hmq-vgmg","MINI-m342-2c8x-r8c2","MINI-rvqq-p3hg-hf4h","MINI-vxh7-26gx-36vp","ROOT-APP-NPM-CVE-2026-33228","UBUNTU-CVE-2026-33228"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript JSON parser","requires_auth":"none","summary":"Prototype pollution in flatted allows attackers to corrupt global objects, potentially leading to code execution or privilege escalation.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flatted","vendor":"webreflection"}],"cvss":{"score":8.9,"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:P","version":"4.0"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"flatted is a circular JSON parser. Prior to version 3.4.2, the parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it with the key \"__proto__\" returns Array.prototype via the inherited getter. This object is then treated as a legitimate parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype to the consumer. Any code that subsequently writes to that property will pollute the global prototype. This issue has been patched in version 3.4.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"flatted: Prototype Pollution via parse()","id":"CVE-2026-33228","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"XWiki Platform affected by remote code execution with script right through unprotected Velocity scripting API","id":"CVE-2026-33229"},"packages":[{"ecosystem":"npm","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"flatted","purl":null,"source":"GHSA-rf6f-7fwh-wjgh"},{"ecosystem":"npm","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"flatted","purl":"pkg:npm/flatted","source":"GHSA-rf6f-7fwh-wjgh"}],"prev":{"headline":"Apache ActiveMQ: Improper validation and restriction of a classpath path name","id":"CVE-2026-33227"},"products":["flatted"],"published":"2026-03-20","related":[{"cvss_score":7.5,"headline":"flatted: Unbounded recursion DoS in parse() revive phase","id":"CVE-2026-32141","kev_date_added":null,"published":"2026-03-12"}],"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":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-07","vendors":["WebReflection"]},"summary":"Prototype pollution in flatted allows attackers to corrupt global objects, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-33228/"}