CVE-2025-3193: Versions of the package algoliasearch-helper from 2.0.0-rc1 and before 3.11.2 are vulnerable to Prototype P...
Versions of the package algoliasearch-helper from 2.0.0-rc1 and before 3.11.2 are vulnerable to Prototype Pollution in the _merge() function in merge.js, which allows constructor.prototype to be written even though doing so throws an error. In the "extreme edge-case" that the resulting error is caught, code injected into the user-supplied search parameter may be exeucted.
This is related to but distinct from the issue reported in [CVE-2021-23433](https://security.snyk.io/vuln/SNYK-JS-ALGOLIASEARCHHELPER-1570421).
**NOTE:** This vulnerability is not exploitable in the default configuration of InstantSearch since searchParameters are not modifiable by users.
Security readout for executives and security teams
Plain-English summary
CVE-2025-3193 affects the JavaScript package algoliasearch-helper before 3.11.2. A prototype pollution flaw can cause availability impact and, in a narrow edge case, possible execution of code supplied through search parameters. Sources state default InstantSearch is not exploitable because users cannot modify searchParameters there.
Executive priority
Treat as high priority for internet-facing applications with custom Algolia search parameter handling. For default InstantSearch use, urgency is lower but upgrading remains the cleanest risk reduction.
Technical view
The issue is in algoliasearch-helper’s _merge() function in merge.js. It allows writes to constructor.prototype, triggering an error. If that error is caught in the specific vulnerable flow, user-supplied search parameter content may execute. It is related to, but distinct from, CVE-2021-23433.
Likely exposure
Exposure is most likely in applications using algoliasearch-helper from 2.0.0-rc1 through versions before 3.11.2, especially custom integrations where users can influence searchParameters. Default InstantSearch configurations are stated as not exploitable.
Exploitation context
The CVE is not listed as KEV, and the provided sources do not show active exploitation. Practical exploitability appears limited by configuration and application behavior, specifically user-modifiable searchParameters and caught errors in the affected flow.
Researcher notes
Sources identify CWE-1321 prototype pollution and CVSS 7.5. The stated exploit condition is unusually narrow. Do not assume default InstantSearch exposure. No public source in the bundle confirms exploitation in the wild.
Mitigation direction
Upgrade algoliasearch-helper to 3.11.2 or later.
Confirm transitive dependencies do not pin a vulnerable version.
Avoid exposing searchParameters to direct user modification.
Review custom error handling around Algolia search parameter processing.
Monitor Algolia and Snyk guidance for any updated remediation details.
Validation and detection
Check package.json and lockfiles for algoliasearch-helper versions.
Use SCA tooling to flag versions before 3.11.2.
Confirm deployed bundles include the fixed dependency version.
Review whether InstantSearch is default or customized.
Inspect custom code paths that accept user-controlled search parameters.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1321: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1321 · source CWE mapping
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.