CVE-2026-26275

httpsig-hyper is a hyper extension for http message signatures. An issue was discovered in `httpsig-hyper` prior to version 0.0.23 where Digest header verification could incorrectly succeed due to misuse of Rust's `matches!` macro. Specifically, the comparison `if matches!(digest, _expected_digest)` treated `_expected_digest` as a pattern binding rather than a value comparison, resulting in unconditional success of the match expression. As a consequence, digest verification could incorrectly return success even when the computed digest did not match the expected value. Applications relying on Digest verification as part of HTTP message signature validation may therefore fail to detect message body modification. The severity depends on how the library is integrated and whether additional signature validation layers are enforced. This issue has been fixed in `httpsig-hyper` 0.0.23. The fix replaces the incorrect `matches!` usage with proper value comparison and additionally introduces constant-time comparison for digest verification as defense-in-depth. Regression tests have also been added to prevent reintroduction of this issue. Users are strongly advised to upgrade to the patched version. There is no reliable workaround without upgrading. Users who cannot immediately upgrade should avoid relying solely on Digest verification for message integrity and ensure that full HTTP message signature verification is enforced at the application layer.
Configurations

Configuration 1 (hide)

cpe:2.3:a:junkurihara:httpsig-hyper:*:*:*:*:*:rust:*:*

History

03 Mar 2026, 17:44

Type Values Removed Values Added
CPE cpe:2.3:a:junkurihara:httpsig-hyper:*:*:*:*:*:rust:*:*
First Time Junkurihara
Junkurihara httpsig-hyper
References () https://github.com/junkurihara/httpsig-rs/commit/5533f596c650377e02f4aa9e3eb8dba591b87370 - () https://github.com/junkurihara/httpsig-rs/commit/5533f596c650377e02f4aa9e3eb8dba591b87370 - Patch
References () https://github.com/junkurihara/httpsig-rs/commit/65cbd19b395180a4bba09a89746c4b14ccb8d297 - () https://github.com/junkurihara/httpsig-rs/commit/65cbd19b395180a4bba09a89746c4b14ccb8d297 - Patch
References () https://github.com/junkurihara/httpsig-rs/pull/14 - () https://github.com/junkurihara/httpsig-rs/pull/14 - Issue Tracking, Patch
References () https://github.com/junkurihara/httpsig-rs/pull/15 - () https://github.com/junkurihara/httpsig-rs/pull/15 - Issue Tracking, Patch
References () https://github.com/junkurihara/httpsig-rs/security/advisories/GHSA-7v42-g35v-xrch - () https://github.com/junkurihara/httpsig-rs/security/advisories/GHSA-7v42-g35v-xrch - Vendor Advisory
Summary
  • (es) httpsig-hyper es una extensión hyper para firmas de mensajes HTTP. Se descubrió un problema en 'httpsig-hyper' anterior a la versión 0.0.23 donde la verificación del encabezado Digest podría ser exitosa, aunque de forma indebida, por el mal funcionamiento de la macro 'matches!' de Rust. Específicamente, la comparación 'if matches!(digest, _expected_digest)' trataba '_expected_digest' como una vinculación de patrón en lugar de una comparación de valor, lo que resultaba en el éxito incondicional de la expresión de coincidencia. Como consecuencia, la verificación del digest podía devolver éxito incorrectamente incluso cuando el digest calculado no coincidía con el valor esperado. Por lo tanto, las aplicaciones que dependen de la verificación de Digest como parte de la validación de firmas de mensajes HTTP, pueden no detectar la modificación del cuerpo del mensaje. La gravedad depende de cómo se integra la biblioteca y si se aplican capas adicionales de validación de firmas. Este problema ha sido solucionado en 'httpsig-hyper' 0.0.23. La solución reemplaza el uso incorrecto de 'matches!' por una comparación de valor adecuada y adicionalmente introduce una comparación de tiempo constante para la verificación del digest como defensa en profundidad. También se han añadido pruebas de regresión para evitar la reintroducción de este problema. Se recomienda encarecidamente a los usuarios que actualicen a la versión parcheada. No hay una solución alternativa fiable sin actualizar. Los usuarios que no puedan actualizar inmediatamente deben evitar depender únicamente de la verificación de Digest para la integridad del mensaje y asegurarse de que la verificación completa de la firma de mensajes HTTP se aplique en la capa de aplicación.

19 Feb 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-19 22:16

Updated : 2026-03-03 17:44


NVD link : CVE-2026-26275

Mitre link : CVE-2026-26275

CVE.ORG link : CVE-2026-26275


JSON object : View

Products Affected

junkurihara

  • httpsig-hyper
CWE
CWE-354

Improper Validation of Integrity Check Value

CWE-697

Incorrect Comparison