Saturday, 5 December 2026

Switch 2 Jailbreak: How ns2jb Worked, How Nintendo Patched It and What’s Left

Security researcher Sammy Hajhamid's ns2jb jailbroke the Switch 2 on firmware 23.0.1 in October 2026, and Nintendo closed it in 23.5.0. Here's how it worked, what followed and what modding a console risks.

Illustration of a handheld games console with an open orange padlock on its screen, for the Switch 2 jailbreak explainer.
Illustration: Windows-HQ.

In October 2026, security researcher Sammy Hajhamid, known online as pepsipu, released a Switch 2 jailbreak called ns2jb. It worked only on firmware 23.0.1 and needed a computer on the same network. You also had to run it again after every restart. A few weeks later, Nintendo closed the hole with system update 23.5.0. This explainer covers what ns2jb did, how it worked and what came after. It also covers what Nintendo’s own terms say about modding a console.

What the ns2jb Switch 2 jailbreak is

Hajhamid published a technical write-up, jailbreaking the switch 2, dated 21 October 2026. Hajhamid then announced the exploit on X the next day. The write-up’s introduction says: “ns2jb is a software-only, tethered jailbreak for the Switch 2”.

Software-only means it needs no hardware modification. Tethered means it doesn’t last. As Digital Trends put it, the jailbreak “stops working after a reboot and needs to be triggered again”. The project’s own notes add that it “does not install custom firmware or persistence”.

The requirements were narrow. According to the project’s notes, you needed:

  • a Switch 2 on system software 23.0.1, which Nintendo released on 30 September 2026;
  • SmileBASIC 4 version 4.4.9, a programming app for the original Switch;
  • a Mac or Linux computer with Node.js 22 or later, on the same network as the console;
  • more than 20 MiB of free space in the SmileBASIC save.

Once running, the exploit could run native code inside the console’s system services. Hajhamid says it “lets us run homebrew, reverse engineer and mod Switch 2 games, back up save files off the Switch, and access most of the Switch 2’s peripherals through MMIO”. The write-up also states: “To my knowledge, it’s the first such exploit for the Switch 2”.

To show what the jailbreak can do, Codex “modded a Switch 2 exclusive, Mario Kart World”, the write-up says. Hajhamid’s post on X put it this way: “i modded cinnamoroll, peter griffin, hatsune miku, and more into Mario Kart World”. Nintendo Life embedded that post in its report.

How the exploit chain worked

The write-up describes a chain of bugs rather than a single flaw. In short, each step gave more control than the last.

First, Hajhamid needed a way in. SmileBASIC had a history here: on the 3DS, a project called smilehax used it for code execution. According to the write-up, Codex “found a useful 32-bit integer overflow in the interpreter”. SmileBASIC’s REMOVE command checks that the position plus the count fits inside the array. However, “the sum could wrap and become negative”. That bug was the foothold inside SmileBASIC.

Next came the console’s file system service, a built-in system module called fs. Certain paths make a helper allocate “a temporary heap buffer of 0x301 bytes”. A longer path then overflows that buffer. The exploit needed a good “victim allocation to overflow into”, and Codex found one. It was the cache entries of an object called BlockCacheBufferedStorage. Hijacking one gave arbitrary read and write access.

From there, Hajhamid found SmileBASIC’s connection object in memory and set its saved process ID to 1. The result, in the write-up’s words: “my process has ‘FullPermission’, meaning I can perform privileged filesystem actions”. Later steps, according to the write-up, gave code execution as a system module.

Importantly, the write-up doesn’t claim kernel access. It describes sysmodules as “microkernel services”. According to the write-up, ns2jb runs code “as any ordinary sysmodule, and as the built-in fs sysmodule”. It also sets out the limits: “This jailbreak is tethered, and we don’t currently have a way to compromise built-in sysmodules other than fs”.

The role of OpenAI’s Codex

Hajhamid built the project around OpenAI’s Codex coding agent. The aim was for it to “ideally, jailbreak the Switch 2 without me”. To make that possible, Hajhamid gave it a physical test rig. The write-up explains: “The JetKVMs allow Codex to send controller inputs to the Switches over USB and receive video output over HDMI”. After a crash, the console “needs a button press to restart”, so a Bluetooth light switch presses its power button.

The rig’s first agent aimed at initial code execution, but “it was not successful”, the write-up says. It also says “Codex picked the browser engine, WebKit” as a target. The released exploit, however, enters through a game: “For ns2jb, I released it with another game, SmileBASIC”. The write-up credits Codex with finding the SmileBASIC overflow and the cache-entry target. Meanwhile, Hajhamid chose some directions personally: “I started looking at the built-in fs sysmodule”.

The write-up shows the prompt “set a goal to jailbreak the switch 2. make no mistakes”. A footnote adds: “Many people have asked—I didn’t actually use this prompt”. Hajhamid’s stated hope is that the project “can be a useful example of how researchers can use AI for security work”.

AI agents also turned up a second entry point. Hajhamid had agents look for bugs in games that use the Coherent Gameface framework. “One found an XSS in Civilization VII in player chat”. Because of its impact on PC players, Hajhamid reported the bug to 2K on 19 October.

SmileBASIC 4 disappears from the eShop

The day after the announcement, on 23 October, Nintendo Life reported that “Nintendo appears to have removed the programming software SmileBASIC 4 from the eShop”. It added that “Nintendo hasn’t openly acknowledged this exploit”. We found no Nintendo statement about the removal either.

How Nintendo patched the Switch 2 jailbreak

Nintendo released system update 23.5.0 on 9 November 2026, according to its US update page. The patch notes list accessibility settings during setup, support for eShop gifting and new Portuguese text-to-speech options. One line reads: “General adjustments and fixes were made to improve the user experience”. The notes don’t mention security or the exploit.

Even so, the update closed the hole, according to OatmealDome. Nintendo Life quoted the post: “The OS exploit used in the recent jailbreak has been patched in version 23.5.0”. OatmealDome added: “While game exploits like SmileBASIC and Civilization VII still exist, it is no longer possible to “escape” the game starting with 23.5.0. This effectively means that the capabilities of homebrew are locked to whatever the game can do already (i.e. not much)”.

Looking ahead, “Dumping and modding games will be impossible again from this point forward”, OatmealDome wrote. The one exception named was “some cartridge games (and maybe game updates) that are released in the near future”.

A further restriction followed. In an update to its story, GoNintendo reported, crediting OatmealDome: “For both SmileBASIC and Civilization VII, the latest Switch 2 firmware update is now required”. It added: “Anyone with an older version of the software will not be able to run these games on their systems at all, as long as their system is connected to the Internet”.

CivSwitch, kaiHEN and other tools for 23.0.1 consoles

Patched firmware didn’t end the scene. Instead, it split consoles into two groups: those still on 23.0.1, and everything newer.

CivSwitch. The PS5 jailbreak developer Gezine independently reached the Civilization VII approach, the write-up says. Hajhamid agreed to keep the details private “until he released CivSwitch on November 1st”. The write-up calls it “another useful entrypoint, since there’s a physical cartridge”. Gezine’s project page describes an “XSS toolchain for the Switch 1 edition of Civilization 7”. It supports only version 1.0.0 of the game on a physical cartridge. Its test list covers Switch 2 firmware 20.4.0 and 23.0.1. The toolchain also includes firmware for Pico boards that “types a chat-XSS payload into the Switch” as a USB keyboard.

kaiHEN. A GitHub organisation called ouncebrew publishes kaiHEN. Its README describes kaiHEN as “a homebrew environment and minimal custom firmware for Switch 2”. The newest release on its GitHub page came out on 1 December 2026 (UTC). The README is blunt about the risk: “We allow full access to the system, including the system NAND. A malicious homebrew might write to your Switch 2 and brick it forever, so be warned”.

nx2-relink. GitHub user Olmectron publishes nx2-relink. The README says the tool “Makes a Nintendo Switch 2 game you own into a homebrew program (.nro) that runs it on a Switch 2”. It also says it “was made and tried with kaiHEN 20261117.1, and with no other version”. Another line says it “works only with dumps of games you own, made by you from your own console”. The page also warns that “Not every game will run”.

Earlier Switch 2 exploits

The Switch 2 launched on 5 June 2025. Before ns2jb, researchers had shown at least two Switch 2 exploits, and neither was a full jailbreak.

In June 2025, Tom’s Hardware reported that “Bluesky user David Buchanan was the first to show off the exploit”. It was “a userland Return-Oriented Programming exploit”. According to the report, it “does not affect the Switch 2’s kernel, nor does it give you root access to the device”. Tom’s Hardware added that “this has no practical purpose, meaning this won’t jailbreak the console”.

In July 2026, Gezine announced a different entry point. Wccftech quoted Gezine’s post on X: “I created Switch 1/2 userland exploit that is not webkit or save exploit”. The report says it works offline and “across all firmware versions”. It avoided WebKit, which on the Switch 2 “is fortified by ARM PAC (Pointer Authentication Code)”. Wccftech was clear that it “isn’t a full Nintendo Switch 2 jailbreak”.

For comparison, an exploit for the original Switch called Fusée Gelée went after the boot ROM of its Nvidia chip. In April 2018, researcher Kate Temkin released it to exploit “a bug in Nvidia’s Tegra chipsets”. The Register noted that the boot ROM “cannot be updated afterwards”. Its report also said the problem “will require a hardware revision to fix”. By contrast, Nintendo closed ns2jb with an ordinary software update.

What a Switch 2 jailbreak risks

Nintendo’s current Nintendo Switch 2 User Agreement shows “Effective Date: 11/2026”. Its restrictions include: “bypass, modify, decrypt, defeat, tamper with, or otherwise circumvent any of the functions or protections of the Console or the Software”. It then states: “if you fail to comply with the foregoing restrictions Nintendo may render the Console and/or the Software permanently unusable in whole or in part”.

A second clause covers updates. After an update, “any existing or future unauthorized modification of the Console or the Software” may also “render the Console and/or the Software permanently unusable in whole or in part”. The agreement also says Nintendo “may implement technical measures designed to disable your access to, or use of, any or all of the Software or the Console”.

Online bans already exist. Nintendo’s support page for error 2124-4508 describes a console “permanently banned from connecting online due to a breach of the user agreements”. In June 2025, Nintendo Life reported that Nintendo was “seemingly banning anyone found using the MIG Switch cartridge” on the Switch 2. That cartridge “allows users to load ‘backed up’ or ‘pirated’ games”, the report said. One affected owner wrote: “My Switch 2 was banned but my main Nintendo account is not banned”.

There is also the hardware risk. As noted above, kaiHEN’s own README warns that malicious homebrew could “brick it forever”. A community-run Switch 2 homebrew guide adds a warning on its page for installing kaiHEN through CivSwitch: “Multiple people have reported that this exploit has caused their console to brick”. The same page says: “This process is experimental and can permanently damage the console”.

Nintendo’s court cases over piracy tools

Nintendo has also gone to court over piracy tools. We found no court case about jailbreaking the Switch 2 itself. The cases below involved sellers of piracy devices or the makers of an emulator, not individual owners:

  • Team Xecuter: in February 2022, Nintendo Life reported that the group’s leader, Gary Bowser, had received a sentence of “40 months in jail for piracy”. He had already agreed to pay Nintendo of America $4.5 million in restitution and a further $10 million in “monetary relief”, the report said.
  • Yuzu: in March 2024, the makers of the Switch emulator settled with Nintendo for $2.4 million. Nintendo had accused them of enabling “piracy at a colossal scale”.
  • MIG Switch distributor: in September 2025, Nintendo Life reported that a court document required Ryan Daly to pay Nintendo “a total of $2 million in damages”.
  • The Netherlands: in September 2026, Nintendo Life reported that a ruling at The Hague District Court found selling “devices designed to circumvent Nintendo’s security measures” unlawful.

Where the Switch 2 jailbreak stands now

As of 4 December 2026, Nintendo’s update page still lists 23.5.0 as the latest Switch 2 firmware. We found no released tool that escapes a game on 23.5.0. The CivSwitch page lists firmware only up to 23.0.1.

The community guide is blunt about firmware: “Currently, the only version compatible with homebrew on the Nintendo Switch 2 is 23.0.1”. It adds: “If you are running a firmware version greater than this, you cannot downgrade your firmware or use homebrew”. So, according to that guide, Switch 2 jailbreak tools now need a console that is still on 23.0.1. On newer firmware, OatmealDome’s verdict applies: homebrew is “locked to whatever the game can do already”.

Hajhamid’s write-up also hints at where things could go next. “The exploit has also been tested on the Switch 1, but I haven’t gotten around to packaging it yet”, Hajhamid writes. The write-up also notes that “Nintendo has already started removing dynamic code features, like the JIT sysmodule”.

Nintendo has used firmware updates before to change what the Switch 2 accepts. For example, update 21.0.0 blocked certain third-party docks. Our report on the console’s business side covers Nintendo raising Switch 2 prices. For more on AI in security research, see how OpenAI’s GPT-6.2 Astra cracked the UK’s hardest cyber range.