Cet article n’est pas encore traduit, il est donc affiché en anglais.
Switch 2 Jailbreak Explained: How an AI Agent Helped Hack the Nintendo Switch 2
ns2jb is the first software-only Nintendo Switch 2 jailbreak, and OpenAI's Codex did much of the bug hunting. How it works, its limits and the response.
On October 22, 2026, a researcher posted a video of Mario Kart on a real Nintendo Switch 2 with racers Nintendo never added. The Switch 2 had been jailbroken with software only: no chips and no soldering. A large part of the vulnerability search was done by an AI agent, OpenAI's Codex.
This is news, not a tutorial. There are no install steps here and nothing about piracy.
▶ WATCH ON YOUTUBEWatch the video
▶ WATCH ON YOUTUBEFull video
What happened
- The researcher is Sammy Hajhamid, known online as pepsipu.
- The exploit is called ns2jb. He says it is the first of its kind on Switch 2.
- It targets Switch 2 firmware 23.0.1, the update Nintendo released on September 30.
- By his account, the jailbreak took about two weeks, and the Mario Kart World mod took one day.
The robot lab
The interesting part is how an AI worked with a real console.
| Tool | Job |
|---|---|
| A Switch 1 and a Switch 2 | The targets |
| Two JetKVM boxes | Send controller input over USB and capture HDMI video, so the AI can see the screen and press buttons |
| A SwitchBot button presser | Presses the power button every time the console hangs |
Two Codex agents ran at once: one on the Switch 2's browser, one on a Switch 1 inside SmileBASIC. Each worked on one target at a time.
Door 1: the browser
The Switch 2 has a hidden WebKit browser. Codex attacked it with a known, already public WebKit flaw that was not yet fixed there. On October 9 it reported control-flow hijack.
But the browser is locked down: execute-only memory, signed pointers (PAC) and control-flow integrity. Code was running, yet it could not reach the rest of the system.
Door 2: an old coding app
Original Switch games run on the Switch 2, and Switch 1 software does not have the same protection. The choice was SmileBASIC 4, an app for writing your own games in BASIC. An earlier SmileBASIC was used to hack the Nintendo 3DS.
Codex found a bug: a 32-bit integer overflow when removing items from an array. That gave reads and writes outside the array, and then control of the app's code.
Out of the sandbox
The app still ran in a sandbox. The prize is the system.
- Most Codex agents hunted in the audio, local network and graphics services. He chose fs, the system module that handles every file on the console.
- He found a buffer overflow in how fs cleans up file paths.
- With it he changed one number, the app's process ID, to 1. The system then granted full permissions.
- The loader checks Nintendo's signatures before starting a program. He kept the signed Nintendo files and swapped in his own program, so the checks still passed.
Result: his own native code runs like a system module.
What it can and cannot do
| Can | Cannot |
|---|---|
| Run homebrew | It is tethered: it must be run again after every reboot |
| Mod and reverse engineer games | It is not custom firmware. Most system modules stay locked |
| Make save backups | It is not a piracy tool. Reports say game backups will not launch without a kernel exploit and console keys |
| Use most of the hardware |
Nintendo's move
- SmileBASIC 4 disappeared from the eShop in the US and Europe soon after.
- Nintendo has made no public statement.
- On October 23, another Switch 2 hacker, Gezine, said he had received an email from Nintendo. Nobody outside knows what it said.
- The hole is in software. One system update can close it. Consoles that stay on 23.0.1 keep it. Updated ones lose it.
Why this is different from the first Switch
In 2018 the first Switch was broken through a bug in the boot ROM of its Tegra X1 chip. No update could fix that, only new hardware. This time Nintendo can patch.
The bigger story
This is not only about Nintendo. The point made in coverage of the hack is that AI coding agents are now speeding up jailbreaks and game decompilation. A known bug that a human might take weeks to turn into a working chain can be explored by agents that never get tired of rebooting a console.
For developers, the lesson is familiar:
- Patch known bugs quickly. The first door was a public flaw.
- Old, trusted software is attack surface. The second door was a legacy app with weaker protections.
- Path handling is dangerous. The sandbox escape was a buffer overflow in path clean-up.
The same three lessons appear in my write-up of the PHP2Shell week.
My take
This is a real research jailbreak, not a one-click hack for everyone, at least for now. Homebrew fans will stay on 23.0.1. For everyone else, Nintendo can close this with one update.
Sources
- Full video: https://youtu.be/sJvIJInVjLo
- pepsipu's write-up: https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
- TechSpot: https://www.techspot.com/news/114303-nintendo-switch-2-jailbreaking-here-homebrew-modding-reverse.html
- The Loadout: https://theloadout.com/nintendo-pulls-smilebasic-4-as-tethered-switch-2-jailbreak-ns2jb-appears
- Notebookcheck: https://www.notebookcheck.net/Switch-2-jailbreak-produces-1st-game-dumps-even-as-Nintendo-responds-to-piracy-threat.1433250.0.html
Not affiliated with Nintendo. This article does not explain how to install or use the exploit.


