CVE-2026-72861
JSON

6.9medium

Appwrite Templates github-issue-bot Skips Webhook Signature Verification When the X-Hub-Signature-256 Header Is Absent

Severity
6.9medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

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.

Affected

Product or packageVersionsReported by
appwrite templatesup to 1.1.2CVE List

All scores

VulnCheck5.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
VulnCheck6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Classification

CWE-347

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-72861 changed 2026-09-24CVE Terms of Use
NVDCVE-2026-72861 changed 2026-10-18Public domain