{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/42795?format=json","vulnerability_id":"VCID-ch89-mzt7-3ych","summary":"Access of Resource Using Incompatible Type ('Type Confusion')\nIn Firebase PHP-JWT before 6.0.0, an algorithm-confusion issue (e.g., RS256 / HS256) exists via the kid (aka Key ID) header, when multiple types of keys are loaded in a key ring. This allows an attacker to forge tokens that validate under the incorrect key. NOTE: this provides a straightforward way to use the PHP-JWT library unsafely, but might not be considered a vulnerability in the library itself.","aliases":[{"alias":"CVE-2021-46743"},{"alias":"GHSA-8xf4-w7qw-pjjw"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/61135?format=json","purl":"pkg:composer/firebase/php-jwt@6.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@6.0.0"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/200845?format=json","purl":"pkg:composer/firebase/php-jwt@1.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-gwc7-xjjj-dyb6"},{"vulnerability":"VCID-pb3h-j386-vbb7"},{"vulnerability":"VCID-vbcd-eam1-4ud9"},{"vulnerability":"VCID-yfu1-x2ah-wfd4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@1.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/52232?format=json","purl":"pkg:composer/firebase/php-jwt@2.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@2.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564873?format=json","purl":"pkg:composer/firebase/php-jwt@2.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@2.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564874?format=json","purl":"pkg:composer/firebase/php-jwt@2.2.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@2.2.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564875?format=json","purl":"pkg:composer/firebase/php-jwt@3.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@3.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564876?format=json","purl":"pkg:composer/firebase/php-jwt@4.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@4.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564877?format=json","purl":"pkg:composer/firebase/php-jwt@5.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564878?format=json","purl":"pkg:composer/firebase/php-jwt@5.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564879?format=json","purl":"pkg:composer/firebase/php-jwt@5.2.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.2.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564880?format=json","purl":"pkg:composer/firebase/php-jwt@5.2.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.2.1"},{"url":"http://public2.vulnerablecode.io/api/packages/564881?format=json","purl":"pkg:composer/firebase/php-jwt@5.3.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.3.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564882?format=json","purl":"pkg:composer/firebase/php-jwt@5.4.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.4.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564883?format=json","purl":"pkg:composer/firebase/php-jwt@5.5.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.5.0"},{"url":"http://public2.vulnerablecode.io/api/packages/564884?format=json","purl":"pkg:composer/firebase/php-jwt@5.5.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ch89-mzt7-3ych"},{"vulnerability":"VCID-vbcd-eam1-4ud9"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/firebase/php-jwt@5.5.1"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46743","reference_id":"","reference_type":"","scores":[{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.70968","published_at":"2026-06-04T12:55:00Z"},{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.71011","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.70985","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.71","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.71017","published_at":"2026-06-06T12:55:00Z"},{"value":"0.00641","scoring_system":"epss","scoring_elements":"0.7101","published_at":"2026-06-05T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46743"},{"reference_url":"https://github.com/firebase/php-jwt","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/firebase/php-jwt"},{"reference_url":"https://github.com/firebase/php-jwt/issues/351","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/firebase/php-jwt/issues/351"},{"reference_url":"https://github.com/firebase/php-jwt/releases/tag/v6.0.0","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/firebase/php-jwt/releases/tag/v6.0.0"},{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/firebase/php-jwt/CVE-2021-46743.yaml","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/firebase/php-jwt/CVE-2021-46743.yaml"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46743","reference_id":"CVE-2021-46743","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46743"},{"reference_url":"https://github.com/advisories/GHSA-8xf4-w7qw-pjjw","reference_id":"GHSA-8xf4-w7qw-pjjw","reference_type":"","scores":[{"value":"CRITICAL","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-8xf4-w7qw-pjjw"}],"weaknesses":[{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."},{"cwe_id":843,"name":"Access of Resource Using Incompatible Type ('Type Confusion')","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":347,"name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data."}],"exploits":[],"severity_range_score":"9.0 - 10.0","exploitability":"0.5","weighted_severity":"9.0","risk_score":4.5,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-ch89-mzt7-3ych"}