CVE-2026-72861

The github-issue-bot templates in appwrite/templates verify the GitHub webhook signature with an inverted condition. verifyWebhook in node/github-issue-bot/src/github.js and in node-typescript/github-issue-bot/src/github.ts returns "typeof signature !== 'string' || (await verify(...))", so when the X-Hub-Signature-256 header is absent the first operand is true, the logical OR short-circuits, and the function reports success without performing any HMAC verification. main.js rejects a request only when verifyWebhook returns false, so an unauthenticated request carrying no signature passes the check. Processing then continues to postComment, which takes the repository and issue objects directly from the request body, letting the caller direct the deployed function to post a comment on a repository and issue of their choosing using the configured GITHUB_TOKEN, with the issue author login from the body interpolated into the comment text.
Configurations

No configuration.

History

18 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) Las plantillas de github-issue-bot en appwrite/templates verifican la firma del webhook de GitHub con una condición invertida. verifyWebhook en node/github-issue-bot/src/github.js y en node-typescript/github-issue-bot/src/github.ts devuelve 'typeof signature !== 'string' || (await verify(...))', por lo que cuando el encabezado X-Hub-Signature-256 está ausente, el primer operando es verdadero, el OR lógico realiza un cortocircuito y la función informa éxito sin realizar ninguna verificación HMAC. main.js rechaza una solicitud solo cuando verifyWebhook devuelve falso, por lo que una solicitud no autenticada que no lleva firma pasa la verificación. El procesamiento luego continúa a postComment, que toma los objetos de repositorio y de incidencia directamente del cuerpo de la solicitud, permitiendo al llamador dirigir la función desplegada para publicar un comentario en un repositorio y una incidencia de su elección usando el GITHUB_TOKEN configurado, con el login del autor de la incidencia del cuerpo interpolado en el texto del comentario.

Information

Published : 2026-08-20 20:17

Updated : 2026-10-18 20:10


NVD link : CVE-2026-72861

Mitre link : CVE-2026-72861

CVE.ORG link : CVE-2026-72861


JSON object : View

Products Affected

No product.

CWE
CWE-347

Improper Verification of Cryptographic Signature