· via Hacker News – Front Page (native)
Xray-core concealed certificate verification bypass for six months, researcher says
A researcher says Xray-core quietly patched a certificate pinning bypass without telling users, leaving connections open to man-in-the-middle attackers for nearly six months.
A security researcher has accused the maintainers of Xray-core, a widely used proxy tool, of concealing a certificate verification bypass in the software for roughly six months. The account, posted to the net4people discussion forum on GitHub and later surfaced on Hacker News, describes a flaw that could let an on-path attacker defeat the project's certificate pinning and intercept traffic that users believed was protected by TLS.
From layered checks to a single point of failure
According to the report, the trouble started with a configuration migration. Xray-core had offered a pinnedPeerCertificateChainSha256 option since October 21, 2021, which layered custom certificate chain pinning on top of regular certificate verification. Together with the allowInsecure flag, it let people use self-signed certificates safely: conventional validation could be skipped, but the pinned chain still had to match.
The maintainers have publicly argued that enabling allowInsecure on its own leaves users fully exposed to man-in-the-middle attacks, and on January 9, 2026 they removed the old pinning option and replaced it with pinnedPeerCertSha256 to discourage that practice. For self-signed certificates, users now had to enable both the new pinning option and allowInsecure, which skips regular verification and relies solely on the custom pinning logic.
On January 13, the report says, the project shipped its first release containing the replacement option and, with it, a bypass. Because the previous option had been deleted, users of self-signed certificates had no choice but to migrate to the vulnerable one. At that stage, users who avoided self-signed certificates and left allowInsecure off were still covered by regular certificate verification.
That safety margin disappeared on January 16, according to the report, when the logic was changed so that enabling pinnedPeerCertSha256 always skips regular verification and runs only the custom pinning. The layered design was gone: if the pinning code were flawed, nothing else would stand in an attacker's way.
The bypass and the quiet patch
On February 6, the researcher privately reported the flaw. Per the disclosure, a man-in-the-middle attacker could insert a leaf certificate at any position in the certificate chain presented to the client, and the pinning logic would still validate it successfully. The researcher describes the bug as simple enough to spot at a glance without advanced security knowledge.
The maintainers fixed it the same day, but the report alleges the commit was framed as routine code simplification, and the release published that day made no mention of a security issue. Also that day, the project posted a message on Telegram about building security into software design so that even the least careful users are not left completely unprotected — rhetoric the researcher contrasts with how the bug was actually handled.
An incomplete fix forces disclosure
As of July 3, 2026, the vulnerability had still not been disclosed to users, according to the report. On that date the researcher found that the February fix was incomplete, and that certificate verification could still be bypassed under certain circumstances. Fearing a second silent patch, they filed a GitHub Security Advisory rather than reporting privately again. By that point, users of the affected option had reportedly been exposed for nearly six months.
The researcher's closing argument is that the project publicly blames users for weakening TLS checks, while its own decisions forced a migration from a proven option to a flawed replacement and then left users uninformed about the consequences.
Why it matters
Certificate verification is what makes TLS meaningful, and a pinning mechanism that validates the wrong certificate gives users a false sense of security while an attacker reads or modifies traffic in flight. For proxy users in particular, whose connections are exactly what network-level adversaries want to inspect, the stakes are high.
The episode is also a case study in the cost of silent fixes: patched code protects only the people who install it, and without an advisory there is no signal to upgrade. Finally, it illustrates the risk of removing a working security control and pushing users onto a replacement with less defense in depth. The account is a first-person disclosure by the reporter, so its characterisations remain allegations — but the timeline and the GitHub Security Advisory give it a concrete, verifiable spine.
- #xray-core
- #security
- #tls
- #proxy
- #vulnerability