{"id":"CVE-2022-23529","aliases":["GHSA-27h2-hvpr-p74q"],"summary":"jsonwebtoken: Insecure input validation in jwt.verify function","published_at":"2022-12-21T00:00:00Z","modified_at":"2026-09-10T03:49:50.178397Z","products":[],"rating":{"severity":"high","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":8.6,"details":"A flaw was found in the jsonwebtoken package. In affected versions of the jsonwebtoken library, if a malicious actor can modify the key retrieval parameter (referring to the secretOrPublicKey argument from the readme link) of the jwt.verify() function, they can perform remote code execution (RCE).","affected_stack":[],"affected_other":[{"ecosystem":"npm","package":"jsonwebtoken","purl":"pkg:npm/jsonwebtoken","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0"}]}],"fixed":["9.0.0"],"provider":"osv","source":"GHSA-27h2-hvpr-p74q","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"not_affected","packages":["ocs4/mcg-core-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["noobaa-core-container","odf4/mcg-core-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0218","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0218","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-01-29T23:00:00Z","modified_at":"2023-01-29T23:00:00Z","summary":"IBM Integration Bus: Mehrere Schwachstellen","details":"Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in IBM Integration Bus ausnutzen, um beliebigen Programmcode auszuführen oder Sicherheitsvorkehrungen zu umgehen.\n\nIBM Integration Bus ist ein \"lightweight\" ESB, welche die Integration von SOAP oder non-SOAP Datenquellen von verschiedenen Plattformen ermöglicht.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2023-0218"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0218.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0218"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6890605"}]},{"provider":"cvelistv5","source_id":"CVE-2022-23529","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-23529","license":"CC-BY-4.0","published_at":"2022-12-21T20:50:06.685Z","modified_at":"2025-02-13T15:46:20.507Z","withdrawn_at":"2023-01-27T00:00:00Z","severity":[],"affected":[],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-27h2-hvpr-p74q","relation":"self","url":"https://osv.dev/vulnerability/GHSA-27h2-hvpr-p74q","license":"CC-BY-4.0","published_at":"2022-12-22T03:31:28Z","modified_at":"2026-09-10T03:49:50.178397Z","withdrawn_at":"2023-01-27T21:51:55Z","summary":"jsonwebtoken has insecure input validation in jwt.verify function","details":"# Overview\n\nFor versions `<=8.5.1` of `jsonwebtoken` library, if a malicious actor has the ability to modify the key retrieval parameter (referring to the `secretOrPublicKey` argument from the [readme link](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback)) of the `jwt.verify()` function, they can gain remote code execution (RCE).\n\n# Am I affected?\n\nThis security issue is a concern when the `jsonwebtoken` library is used in an insecure way. Users are affected only if they allow untrusted entities to modify the key retrieval parameter of the `jwt.verify()` on a host that you control. In this scenario, if all the prerequisites are met, the issue may be exploitable. The source of this risk in this scenario would be in the calling code, and not in the library itself.\n\n# How do I fix it?\n\nUsers of jsonwebtoken 8.5.1 and earlier are encouraged to update to the latest version, 9.0.0, which presents safer code and important security checks that fixes this security flaw and others and prevents misuse of the package.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","source":"GHSA-27h2-hvpr-p74q"}],"affected":[{"ecosystem":"npm","package":"jsonwebtoken","purl":"pkg:npm/jsonwebtoken","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0"}]}],"fixed":["9.0.0"],"provider":"osv","source":"GHSA-27h2-hvpr-p74q","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-27h2-hvpr-p74q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23529"},{"type":"WEB","url":"https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3"},{"type":"PACKAGE","url":"https://github.com/auth0/node-jsonwebtoken"}]},{"provider":"redhat-vex","source_id":"CVE-2022-23529","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-23529","license":"CC-BY-4.0","published_at":"2022-12-21T00:00:00Z","modified_at":"2023-02-15T16:31:37Z","summary":"jsonwebtoken: Insecure input validation in jwt.verify function","details":"A flaw was found in the jsonwebtoken package. In affected versions of the jsonwebtoken library, if a malicious actor can modify the key retrieval parameter (referring to the secretOrPublicKey argument from the readme link) of the jwt.verify() function, they can perform remote code execution (RCE).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:N","source":"CVE-2022-23529"},{"type":"Red Hat","score":"None","source":"CVE-2022-23529"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"not_affected","packages":["ocs4/mcg-core-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["noobaa-core-container","odf4/mcg-core-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23529"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23529.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-23529"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2159911"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-23529"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23529"},{"type":"WEB","url":"https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-27h2-hvpr-p74q"}]}],"references":[{"type":"WEB","url":"https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-27h2-hvpr-p74q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23529"},{"type":"WEB","url":"https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3"},{"type":"PACKAGE","url":"https://github.com/auth0/node-jsonwebtoken"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23529.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-23529"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2159911"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-23529"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0218","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0218","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-01-29T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-23529","url":"https://www.cve.org/CVERecord?id=CVE-2022-23529","license":"CC-BY-4.0","modified_at":"2025-02-13T15:46:20.507Z","relation":"self"},{"provider":"osv","source_id":"GHSA-27h2-hvpr-p74q","url":"https://osv.dev/vulnerability/GHSA-27h2-hvpr-p74q","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:50.178397Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-23529","url":"https://access.redhat.com/security/cve/CVE-2022-23529","license":"CC-BY-4.0","modified_at":"2023-02-15T16:31:37Z","relation":"self"}]}
