# YesWiki Vulnerable to Unauthenticated ActivityPub Signature-Verification Bypass via `!openssl_verify(...)` accepting `int(-1)`

High severity, published 2026-07-09. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Canonical URL: https://buzzphp.com/security/ghsa-mv28-wj57-f57g · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.2) |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-52767](https://nvd.nist.gov/vuln/detail/CVE-2026-52767) |
| GHSA | [GHSA-mv28-wj57-f57g](https://github.com/advisories/GHSA-mv28-wj57-f57g) |
| Weakness | CWE-347 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yeswiki/yeswiki | >= 4.6.2, < 4.6.6 | 4.6.6 |

## What to do

Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Check which version you run with `composer show yeswiki/yeswiki`, and every affected package with `composer audit`.

## About this advisory

Summary HttpSignatureService::verifySignature() checks the result of PHP's opensslverify() with a loose boolean negation - if (!opensslverify(...)) { throw ... }. PHP's opensslverify has four possible return values:

| return | meaning | !return | | ------ | ------------------------------------------------ | --------- | | 1 | signature is valid | false | | 0 | signature is invalid | true ✓ | | -1 | the verify call itself failed (internal error) | false ❌ | | false| input rejected by PHP's argument validation | true ✓ |

The -1 row is the bypass: PHP's truthiness rules make -1 a truthy value, so !(-1) === false, the throw is skipped, and the controller proceeds to processActivity().

## Links

- [GHSA-mv28-wj57-f57g on GitHub](https://github.com/advisories/GHSA-mv28-wj57-f57g)
- [CVE-2026-52767 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52767)
- [All Composer security advisories](https://buzzphp.com/security)
