{"answers":{"affected":"4 open source packages ship an affected version, including algolia/algoliasearch-magento-2.","exploited":"There is no known exploitation of GHSA-595p-g7xc-c333 in the wild and no public exploit code.","fix":"Upgrade algolia/algoliasearch-magento-2 to a fixed version for your release line: 3.16.2 or 3.17.2.","what":"GHSA-595p-g7xc-c333 is a code injection vulnerability in algolia/algoliasearch-magento-2, published on 14 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-595p-g7xc-c333 and fix it if it is affected.\n\nWhat it is: GHSA-595p-g7xc-c333 is a code injection vulnerability in algolia/algoliasearch-magento-2, published on 14 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-595p-g7xc-c333 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- algolia/algoliasearch-magento-2 (Packagist): affected all versions; fixed in 3.16.2\n- algolia/algoliasearch-magento-2 (Packagist): affected all versions; fixed in 3.16.2\n- algolia/algoliasearch-magento-2 (Packagist): affected from 3.17.0-beta.1; fixed in 3.17.2\n- algolia/algoliasearch-magento-2 (Packagist): affected from 3.17.0-beta.1; fixed in 3.17.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/GHSA-595p-g7xc-c333/ (Markdown: https://insights.sbomify.com/GHSA-595p-g7xc-c333/index.md)","id":"GHSA-595p-g7xc-c333","markdown":"https://insights.sbomify.com/GHSA-595p-g7xc-c333/index.md","name":"GHSA-595p-g7xc-c333","record":{"aliases":[],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Magento 2 extension","requires_auth":"low_privilege","summary":"Attackers with database write access can execute arbitrary PHP code via the Algolia indexing queue in Magento 2.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nVersions of the Algolia Search \u0026 Discovery extension for Magento 2 prior to **3.17.2** and **3.16.2** contain a vulnerability where data read from the database was treated as a trusted source during job execution.\n\nIf an attacker is able to modify records used by the extension’s indexing queue, this could result in **arbitrary PHP code execution** when the affected job is processed.\n\nExploitation requires the ability to write malicious data to the Magento database and for the indexing queue to be enabled.\n\n---\n\n### Patches\n\nThis vulnerability has been fixed in the following versions:\n\n- **3.17.2**\n- **3.16.2**\n\nMerchants should upgrade to a supported patched version immediately.\n\nVersions outside the supported maintenance window do **not** receive security updates and remain vulnerable.\n\n---\n\n### Workarounds\n\nUpgrading to a patched version is the only recommended remediation.\n\nIf an immediate upgrade is not possible, the following temporary risk mitigations may reduce exposure:\n\n- Disable the Algolia indexing queue to prevent queued jobs from being executed.\n- Restrict job execution logic to an explicit allowlist of permitted operations.\n- Review the contents of the `algoliasearch_queue` table for unexpected or unrecognized entries.\n- If queue archiving is enabled, review historical records in `algoliasearch_queue_archive`.\n\nThese mitigations are provided as guidance only and do not replace upgrading to a patched version.\n\n---\n\n### References\n\n- Algolia Search \u0026 Discovery for Magento 2 releases:\n  - [3.16.2](https://github.com/algolia/algoliasearch-magento-2/releases/tag/3.16.2)\n  - [3.17.2](https://github.com/algolia/algoliasearch-magento-2/releases/tag/3.17.2)","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Algolia Search \u0026 Discovery for Magento 2 Has Untrusted Data Handling","id":"GHSA-595p-g7xc-c333","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.16.2"],"introduced":["0"],"last_affected":[],"package":"algolia/algoliasearch-magento-2","purl":null,"source":"GHSA-595p-g7xc-c333"},{"ecosystem":"Packagist","fixed":["3.16.2"],"introduced":["0"],"last_affected":[],"package":"algolia/algoliasearch-magento-2","purl":"pkg:composer/algolia/algoliasearch-magento-2","source":"GHSA-595p-g7xc-c333"},{"ecosystem":"Packagist","fixed":["3.17.2"],"introduced":["3.17.0-beta.1"],"last_affected":[],"package":"algolia/algoliasearch-magento-2","purl":null,"source":"GHSA-595p-g7xc-c333"},{"ecosystem":"Packagist","fixed":["3.17.2"],"introduced":["3.17.0-beta.1"],"last_affected":[],"package":"algolia/algoliasearch-magento-2","purl":"pkg:composer/algolia/algoliasearch-magento-2","source":"GHSA-595p-g7xc-c333"}],"products":null,"published":"2026-01-14","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers with database write access can execute arbitrary PHP code via the Algolia indexing queue in Magento 2.","url":"https://insights.sbomify.com/GHSA-595p-g7xc-c333/"}