Search criteria

Related vulnerabilities

GHSA-GJCW-V447-2W7Q

Vulnerability from github – Published: 2020-09-01 15:23 – Updated: 2021-09-23 21:25
VLAI
Summary
Forgeable Public/Private Tokens in jws
Details

Affected versions of the jws package allow users to select what algorithm the server will use to verify a provided JWT. A malicious actor can use this behaviour to arbitrarily modify the contents of a JWT while still passing verification. For the common use case of the JWT as a bearer token, the end result is a complete authentication bypass with minimal effort.

Recommendation

Update to version 3.0.0 or later.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "jws"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2016-1000223"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:10:22Z",
    "nvd_published_at": null,
    "severity": "HIGH"
  },
  "details": "Affected versions of the `jws` package allow users to select what algorithm the server will use to verify a provided JWT. A malicious actor can use this behaviour to arbitrarily modify the contents of a JWT while still passing verification. For the common use case of the JWT as a bearer token, the end result is a complete authentication bypass with minimal effort.\n\n\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.",
  "id": "GHSA-gjcw-v447-2w7q",
  "modified": "2021-09-23T21:25:33Z",
  "published": "2020-09-01T15:23:18Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-1000223"
    },
    {
      "type": "WEB",
      "url": "https://github.com/brianloveswords/node-jws/commit/585d0e1e97b6747c10cf5b7689ccc5618a89b299#diff-4ac32a78649ca5bdd8e0ba38b7006a1e"
    },
    {
      "type": "WEB",
      "url": "https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/brianloveswords/node-jws"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/npm:jws:20160726"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/88"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Forgeable Public/Private Tokens in jws"
}

GSD-2016-1000223

Vulnerability from gsd - Updated: 2023-12-13 01:21
Details
** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.

{
  "GSD": {
    "alias": "CVE-2016-1000223",
    "id": "GSD-2016-1000223"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2016-1000223"
      ],
      "id": "GSD-2016-1000223",
      "modified": "2023-12-13T01:21:18.045077Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2016-1000223",
        "STATE": "RESERVED"
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided."
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c3.0.0",
          "affected_versions": "All versions before 3.0.0",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2021-09-23",
          "description": "Affected versions of the `jws` package allow users to select what algorithm the server will use to verify a provided JWT. A malicious actor can use this behaviour to arbitrarily modify the contents of a JWT while still passing verification. For the common use case of the JWT as a bearer token, the end result is a complete authentication bypass with minimal effort.\n\n\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.",
          "fixed_versions": [
            "3.0.0"
          ],
          "identifier": "GMS-2020-742",
          "identifiers": [
            "GHSA-gjcw-v447-2w7q",
            "GMS-2020-742",
            "CVE-2016-1000223"
          ],
          "not_impacted": "All versions starting from 3.0.0",
          "package_slug": "npm/jws",
          "pubdate": "2020-09-01",
          "solution": "Upgrade to version 3.0.0 or above.",
          "title": "Forgeable Public/Private Tokens in jws",
          "urls": [
            "https://github.com/brianloveswords/node-jws/commit/585d0e1e97b6747c10cf5b7689ccc5618a89b299#diff-4ac32a78649ca5bdd8e0ba38b7006a1e",
            "https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/",
            "https://www.npmjs.com/advisories/88",
            "https://nvd.nist.gov/vuln/detail/CVE-2016-1000223",
            "https://snyk.io/vuln/npm:jws:20160726",
            "https://github.com/advisories/GHSA-gjcw-v447-2w7q"
          ],
          "uuid": "5c0279be-08a9-4407-b05a-651cfd6c8e57"
        }
      ]
    }
  }
}