# GHSA-hvgw-gg3p-295j: Read private customer data reclaiming carts in Klaviyo Magento

> An attacker can reclaim guest carts to read private customer data via the Klaviyo Magento 2 module endpoint.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 May 2024

## What is GHSA-hvgw-gg3p-295j?

GHSA-hvgw-gg3p-295j is a missing authorization vulnerability in klaviyo/magento2-extension, published on 15 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A researcher identified an endpoint in a thirth party module Klaviyo Magento 2 which allows to read private customer data from stores. It works by reclaiming any guest-cart as your own and reading the private data for the orders in the Magento API.

## Which versions are affected by GHSA-hvgw-gg3p-295j?

2 open source packages ship an affected version, including klaviyo/magento2-extension.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `klaviyo/magento2-extension` | Packagist | From 1.0.0 | 3.0.0 |
| `klaviyo/magento2-extension` | Packagist | From 1.0.0 | 3.0.0 |

## How do I fix GHSA-hvgw-gg3p-295j?

Upgrade klaviyo/magento2-extension to 3.0.0 or later.

## Is GHSA-hvgw-gg3p-295j being exploited?

There is no known exploitation of GHSA-hvgw-gg3p-295j in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-hvgw-gg3p-295j and fix it if it is affected.

What it is: GHSA-hvgw-gg3p-295j is a missing authorization vulnerability in klaviyo/magento2-extension, published on 15 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-hvgw-gg3p-295j in the wild and no public exploit code.

Affected packages and fixed versions:
- klaviyo/magento2-extension (Packagist): affected from 1.0.0; fixed in 3.0.0
- klaviyo/magento2-extension (Packagist): affected from 1.0.0; fixed in 3.0.0

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-hvgw-gg3p-295j/ (Markdown: https://insights.sbomify.com/GHSA-hvgw-gg3p-295j/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-hvgw-gg3p-295j

---
From sbomify Insights: https://insights.sbomify.com/GHSA-hvgw-gg3p-295j/
Summaries are generated and may contain mistakes; the official description above is the record.
