HIGH 7.5

CVE-2026-59720: Hoppscotch Mock Server Public Exposure Vulnerability

Hoppscotch, an open source API development platform, has a flaw that causes mock servers created from private collections to be publicly accessible on the internet without requiring authentication. When developers set up a mock server, the system fails to save the 'private' setting, and the database defaults these servers to public. This means sensitive API data and schemas stored in private collections could be exposed to anyone who discovers the mock server URL. The issue affects all versions before 2026.6.0 and is resolved in that release.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses (CWE)
CWE-200, CWE-284
Affected products
0 configuration(s)
Published / Modified
2026-07-09 / 2026-07-10

NVD description (verbatim)

Hoppscotch is an open source API development ecosystem. Prior to 2026.6.0, mock server creation in mock-server.service.ts does not persist the isPublic input field while schema.prisma defaults isPublic to true, causing mock servers linked to private collections to be publicly accessible without authentication and potentially expose sensitive API data. This issue is fixed in version 2026.6.0.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in mock-server.service.ts where the isPublic input parameter is not persisted during mock server creation. The Prisma schema defaults the isPublic field to true when not explicitly set, resulting in mock servers being created with public visibility regardless of the privacy setting of their parent collections. This causes mock servers linked to private collections to be accessible without authentication, exposing the underlying API specifications and potentially sensitive test data. The flaw is an improper handling of access control defaults (CWE-200, CWE-284).

Business impact

Teams using Hoppscotch to manage private API specifications face unintended exposure of API schemas, endpoints, and test data to the public internet. This could enable reconnaissance attacks, API abuse, or competitive intelligence gathering. Organizations relying on Hoppscotch for internal API development and documentation may inadvertently violate compliance requirements by exposing sensitive technical details. The risk is particularly acute for organizations with strict data governance policies or those handling APIs in regulated industries.

Affected systems

Hoppscotch versions prior to 2026.6.0 are affected. This includes self-hosted and cloud-hosted instances of the platform. Any deployment where users create mock servers from collections marked as private is vulnerable. The open source nature of Hoppscotch means affected instances exist across diverse environments—from individual developer machines to enterprise deployments.

Exploitability

Exploitation requires only network access to a Hoppscotch instance and the ability to enumerate or guess mock server URLs. No authentication, special privileges, or user interaction is required. The ease of exploitation is high; an attacker with knowledge of a target's use of Hoppscotch could systematically discover exposed mock servers and their associated API specifications. The CVSS 3.1 score of 7.5 (HIGH) reflects the network-accessible, unauthenticated nature of the exposure.

Remediation

Upgrade Hoppscotch to version 2026.6.0 or later, which properly persists the isPublic field during mock server creation. Organizations must verify the setting is correctly propagated after upgrading. For teams unable to patch immediately, restrict network access to Hoppscotch instances using firewall rules or authentication gateways, and audit existing mock servers for unintended public exposure.

Patch guidance

Update to Hoppscotch version 2026.6.0 or later. Consult the official Hoppscotch repository and release notes for deployment-specific guidance, as patching procedures differ between self-hosted and managed instances. After patching, test mock server creation to confirm the isPublic setting is now correctly saved when set to private. Review and remediate any mock servers created prior to the upgrade.

Detection guidance

Audit all existing mock servers in your Hoppscotch instances to identify those marked as public but linked to private collections. Review access logs for unauthenticated requests to mock server endpoints. For self-hosted deployments, query the underlying database to compare the isPublic flag against the parent collection's privacy setting. Monitor for scanning or enumeration attempts targeting mock server endpoints that may indicate external discovery.

Why prioritize this

This vulnerability is HIGH priority because it enables unauthenticated, network-accessible disclosure of sensitive API specifications with no user interaction required. Teams managing proprietary APIs or APIs in regulated environments should prioritize patching immediately. The fix is straightforward and available, and the risk of continued exposure is material for any organization relying on Hoppscotch's privacy controls.

Risk score, explained

The CVSS 3.1 score of 7.5 reflects a high-severity information disclosure vulnerability with network-adjacent attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and confidentiality impact (C:H) while integrity and availability are not affected. The score appropriately emphasizes the ease of exploitation and the sensitive nature of API specifications as attack surface information.

Frequently asked questions

How would an attacker find exposed mock servers?

An attacker would need to identify that a target uses Hoppscotch and then enumerate or brute-force mock server URLs based on common naming patterns or by inspecting publicly available API documentation that references the mock endpoints. DNS enumeration, search engine indexing, or accidental disclosure in code repositories could also reveal mock server URLs.

Does upgrading to 2026.6.0 automatically fix already-exposed mock servers?

No. The patch fixes the underlying bug so new mock servers respect the isPublic setting going forward. Administrators must audit and remediate any mock servers created before the upgrade by either deleting them or manually adjusting their visibility settings in the patched version.

If we self-host Hoppscotch, are we affected?

Yes, self-hosted instances running versions before 2026.6.0 are equally affected. Self-hosting actually increases risk if the instance is internet-facing without additional access controls, since mock servers can be discovered remotely.

What data is at risk in an exposed mock server?

Mock servers expose the API schema, endpoint definitions, parameter specifications, example request/response payloads, and any test or sample data included in the mock. This information aids attackers in understanding the API surface, finding logical flaws, and crafting targeted attacks against the production API.

This analysis is provided for informational purposes to support vulnerability management and risk assessment. While derived from official CVE data, this explainer does not constitute security advice and should not replace a thorough review of vendor advisories and your organization's own testing. No exploit code or weaponization details are provided. Verify all patch versions and compatibility against your specific Hoppscotch deployment before applying updates. Consult the official Hoppscotch security advisory and release notes for definitive remediation guidance. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).