# Xray-core hid a certificate bypass that left users exposed for half a year

Original title: Xray-core concealed a certificate verification bypass vulnerability

> Hacker News story 49956003 · language: en · submitted 2026-10-04
> Web version: https://zeli.app/story/49956003
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 86 · by [timbill](<https://news.ycombinator.com/user?id=timbill>) · 💬 15
[original](<https://github.com/net4people/bbs/issues/672>) · [HN discussion](<https://news.ycombinator.com/item?id=49956003>)

## Summary

In January 2026, Xray-core replaced its pinnedPeerCertificateChainSha256 option with pinnedPeerCertSha256, which always skips regular certificate verification. A bypass in the new option let a man-in-the-middle insert a leaf certificate anywhere in the chain. The maintainers fixed it silently, never told users, and only a later incomplete fix forced a GitHub advisory. Users were left unprotected for nearly six months.

## Key quote

> Xray-core itself is exactly the human factor that has left users insecure and "streaking".

## HN discussion (15 comments)

### [soltanov](<https://news.ycombinator.com/item?id=49960800>)

> Fixing the code is only half of incident response. Without an advisory, affected-version range, and downstream notification, users cannot know whether they remain exposed.

### [usernomdeguerre](<https://news.ycombinator.com/item?id=49960460>)

> I get the impression that much of Xray's usage is in mainland China, do many other ecosystems use it? If not, why not?
>
> Naively I would expect solutions out of Mainland China to be more sophisticated due to the internet restrictions within the country and the number of people who are digitally-connected.
>
> But perhaps they cover for usecases one doesn't see outside the gfw.

### [eriwang915](<https://news.ycombinator.com/item?id=49959613>)

> Xray-core's pinnedPeerCertSha256 treated an inserted leaf as the pinned cert, and the fix commit never called it a vulnerability.

---

## Cite

- Page: https://zeli.app/story/49956003
- Date: 2026-10-04
- Source: github.com (https://github.com/net4people/bbs/issues/672)
- Hacker News: https://news.ycombinator.com/item?id=49956003

## Other languages

- zh: https://zeli.app/zh/story/49956003 · markdown: https://zeli.app/zh/story/49956003.md
- ja: https://zeli.app/ja/story/49956003 · markdown: https://zeli.app/ja/story/49956003.md
- ko: https://zeli.app/ko/story/49956003 · markdown: https://zeli.app/ko/story/49956003.md
- de: https://zeli.app/de/story/49956003 · markdown: https://zeli.app/de/story/49956003.md
- es: https://zeli.app/es/story/49956003 · markdown: https://zeli.app/es/story/49956003.md
- ru: https://zeli.app/ru/story/49956003 · markdown: https://zeli.app/ru/story/49956003.md
