{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.4.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "2112081444dbf7f54b98639d5ea55b0db4a2c1dc"
            }
          ],
          "repo": "https://github.com/evershopcommerce/evershop",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-1284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142305.json"
  },
  "details": "EverShop through 2.4.0 contains a business logic vulnerability that allows unauthenticated attackers to set negative cart item quantities via the PATCH /api/cart/:cart_id/items/:item_id endpoint. Attackers can submit a negative integer qty to offset other item prices until the total reaches zero, then use the zero_checkout payment method to place paid orders without payment.",
  "id": "CVE-2026-142305",
  "modified": "2026-12-02T17:45:56.854477204Z",
  "published": "2026-12-02T16:48:48.683Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142305.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/evershopcommerce/evershop"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/api/updateCartItemQty/payloadSchema.json#L8-L11"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/services/updateCartItemQty.ts#L24-L35"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/services/zeroCheckout.ts#L21-L48"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142305"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/evershop-through-2.4.0-negative-cart-quantity-payment-bypass-via-cart-items-api"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "EverShop through 2.4.0 Negative Cart Quantity Payment Bypass via Cart Items API"
}