# CVE-2024-34714: Hoppscotch Extension responds to calls made by origins not in the domain list

> A missing origin check in the Hoppscotch browser extension allows malicious sites to bypass CORS restrictions and access internal extension APIs.

- **Severity:** High 7.6 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 14 May 2024
- **Updated:** 2 Aug 2024
- **Also known as:** GHSA-jjh5-pvqx-gg5v

## What is CVE-2024-34714?

CVE-2024-34714 is a high-severity vulnerability in hoppscotch-extension, published on 14 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

The Hoppscotch Browser Extension is a browser extension for Hoppscotch, a community-driven end-to-end open-source API development ecosystem. Due to an oversight during a change made to the extension in the commit d4e8e4830326f46ba17acd1307977ecd32a85b58, a critical check for the origin list was missed and allowed for messages to be sent to the extension which the extension gladly processed and responded back with the results of, while this wasn't supposed to happen and be blocked by the origin not being present in the origin list.

This vulnerability exposes Hoppscotch Extension users to sites which call into Hoppscotch Extension APIs internally. This fundamentally allows any site running on the browser with the extension installed to bypass CORS restrictions if the user is running extensions with the given version. This security hole was patched in the commit 7e364b928ab722dc682d0fcad713a96cc38477d6 which was released along with the extension version `0.35`. As a workaround, Chrome users can use the Extensions Settings to disable the extension access to only the origins that you want. Firefox doesn't have an alternative to upgrading to a fixed version.

Weakness: CWE-354 (Improper Validation of Integrity Check Value)

## Which versions are affected by CVE-2024-34714?


## How do I fix CVE-2024-34714?

No fix has been published for CVE-2024-34714 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-34714 being exploited?

There is no known exploitation of CVE-2024-34714 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-34714 and fix it if it is affected.

What it is: CVE-2024-34714 is a high-severity vulnerability in hoppscotch-extension, published on 14 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 CVE-2024-34714 in the wild and no public exploit code.

Affected product: hoppscotch-extension. No package-level version data is available, so check the vendor advisory linked from the reference page.

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/CVE-2024-34714/ (Markdown: https://insights.sbomify.com/CVE-2024-34714/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-34714
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-34714
- OSV: https://osv.dev/vulnerability/CVE-2024-34714

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-34714/
Summaries are generated and may contain mistakes; the official description above is the record.
