---
id: CVE-2026-102367
title: >-
  mall4j through 4.0 contains an insufficient session expiration vulnerability
  in the token refresh endpoint that fails to validate the enabled flag when
  issuing new sessions
summary: >-
  mall4j through 4.0 contains an insufficient session expiration vulnerability
  in the token refresh endpoint that fails to validate the enabled flag when
  issuing new sessions. Disabled user accounts can indefinitely renew their
  sessions th…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-613
vendor: gz-yami
product: mall4j
affected:
  - mall4j <= 4.0
published: '2026-09-29'
updated: '2026-09-29'
sourceUpdated: '2026-09-29T00:17:04.060'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102367'
references:
  - url: >-
      https://github.com/LinYuanyi1/cve-request-poc/blob/114b3f0d149e50a7678f591bf8043399fc9ac96c/mall4j/T02_refresh_token_enabled_bypass.py
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gz-yami/mall4j'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-security/yami-shop-security-common/src/main/java/com/yami/shop/security/common/controller/TokenController.java#L38-L44
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-security/yami-shop-security-common/src/main/java/com/yami/shop/security/common/manager/TokenStore.java#L121-L130
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/mall4j-through-4.0-insufficient-session-expiration-via-token-refresh
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-29T00:24:04.805Z'
---

## Overview

mall4j through 4.0 contains an insufficient session expiration vulnerability in the token refresh endpoint that fails to validate the enabled flag when issuing new sessions. Disabled user accounts can indefinitely renew their sessions through the POST /token/refresh endpoint, retaining access that account disabling was intended to remove.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
