GHSA-2frx-j9hj-6c65: Lexik/jwt authentication bundle User Enumeration Vulnerability

LOW
CWE-200
Published
Advisory Summary

GHSA-2frx-j9hj-6c65 is a LOW user enumeration vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Lexik/jwt authentication bundle libraries in the Packagist ecosystem. The issue involves user enumeration in authentication mechanisms. Remediation is available by upgrading affected packages to version 2.10.7, 2.11.3.

GHSA-2frx-j9hj-6c65 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2frx-j9hj-6c65
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Lexik/jwt authentication bundle
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-2frx-j9hj-6c65

To remediate this vulnerability, upgrade all affected Lexik/jwt authentication bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lexik/jwt-authentication-bundle fixed: 2.10.7
Upgrade lexik/jwt-authentication-bundle to 2.10.7
lexik/jwt-authentication-bundle fixed: 2.11.3
Upgrade lexik/jwt-authentication-bundle to 2.11.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for lexik/jwt-authentication-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2frx-j9hj-6c65, inspect your project dependencies for Lexik/jwt authentication bundle:

inspect dependencies for lexik/jwt-authentication-bundle

Analyze the terminal output to locate any version of Lexik/jwt authentication bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Lexik/jwt authentication bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Description ----------- The ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not. Resolution ---------- We now ensure that a generic message is returned whether the user exists or not if the password is invalid or if the user does not exist. The patch for this issue is available [here](https://github.com/lexik/LexikJWTAuthenticationBundle/commit/a175d6dab968d93e96a3e4f80c495435f71d5eb7) for branch 2.10.x and 2.x. Credits ------- I would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.

GHSA-2frx-j9hj-6c65 Affected Lexik/jwt authentication bundle Versions

2 component(s)
Fixed Versions:
2.10.72.11.3
Product / Package Ecosystem Affected Versions Fixed Version
lexik/jwt-authentication-bundle
Packagist
< 2.10.7
2.10.7
lexik/jwt-authentication-bundle
Packagist
≥ 2.11.0
< 2.11.3
2.11.3

References

Frequently Asked Questions

What is GHSA-2frx-j9hj-6c65?
GHSA-2frx-j9hj-6c65 is a security vulnerability in Lexik/jwt authentication bundle involving User enumeration in authentication mechanisms under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Lexik/jwt authentication bundle versions are affected?
Affected versions include releases prior to 2.10.7, 2.11.3 across affected packages: lexik/jwt-authentication-bundle.
What version fixes GHSA-2frx-j9hj-6c65?
Upgrading to 2.10.7, 2.11.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lexik/jwt-authentication-bundle affected?
Yes, lexik/jwt-authentication-bundle is affected in releases prior to 2.10.7, 2.11.3. Upgrade your dependency to 2.10.7, 2.11.3 or later.
What CWE is associated with GHSA-2frx-j9hj-6c65?
GHSA-2frx-j9hj-6c65 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for GHSA-2frx-j9hj-6c65?
Run the dependency tree command: 'inspect dependencies for lexik/jwt-authentication-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2frx-j9hj-6c65",
  "modified" : "2021-10-08T21:21:39Z",
  "published" : "2021-05-17T20:52:21Z",
  "aliases" : [ ],
  "summary" : "User enumeration in authentication mechanisms",
  "details" : "Description\n-----------\n\nThe ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not. \n\nResolution\n----------\n\nWe now ensure that a generic message is returned whether the user exists or not if the password is invalid or if the user does not exist.\n\nThe patch for this issue is available [here](https://github.com/lexik/LexikJWTAuthenticationBundle/commit/a175d6dab968d93e96a3e4f80c495435f71d5eb7) for branch 2.10.x and 2.x.\n\nCredits\n-------\n\nI would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "lexik/jwt-authentication-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "lexik/jwt-authentication-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lexik/LexikJWTAuthenticationBundle/security/advisories/GHSA-2frx-j9hj-6c65"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lexik/LexikJWTAuthenticationBundle/commit/a175d6dab968d93e96a3e4f80c495435f71d5eb7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lexik/LexikJWTAuthenticationBundle"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T19:20:17Z",
    "nvd_published_at" : null
  }
}