Urgent.News

What's breaking now, across hundreds of outlets.

Tech

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length

n2n supernode's REGISTER_SUPER_NAK path trusted a 16-bit length The n2n peer-to-peer VPN uses supernodes to help edges find each other and exchange control messages. One of those messages is REGISTER_SUPER_NAK . CVE-2026-136404 concerns the way n2n versions 3.0 through 3.1.1 handled an authentication-token size inside that message. The field came from the network and was used in a stack buffer…

The n2n peer-to-peer VPN employs supernodes to facilitate communication between individual nodes and the exchange of control messages. One such message, REGISTER_SUPER_NAK, is utilized to register a supernode within a community. CVE-2026-136404 addresses a vulnerability in n2n versions 3.0 through 3.1.1, where the authentication-token size within this message was not properly validated during a stack buffer operation.

This allowed a remote, unauthenticated attacker to register a supernode and send a malformed REGISTER_SUPER_NAK datagram with an oversized token_size. The consequences of this exploitation could include memory disclosure, stack canary or pointer leakage, return-address corruption, and ultimately, a denial of service. The vulnerability scores a high impact of 4.0 in CVSS terms, encompassing confidentiality, integrity, and availability.

The issue arises due to the use of a 16-bit length field, which can exceed the size of a stack allocation, leading to overwriting of adjacent local state. Despite the advisory describing the exploited path as unauthenticated, it is important to note that registration can occur before a verified peer identity is established, and the NAK handler must still parse the message to validate the registration. Superseding the vulnerable length occurs during this pre-validation stage.

To mitigate this risk, a comprehensive approach is recommended. First, identify all n2n supernodes and edge deployments, including any UDP services exposed to the internet or utilized in remote-access overlays. Document the n2n version, build source, listening ports, community configurations, and discoverability from untrusted networks for each instance.

The secure build should be derived from the upstream n2n project after the patch in commit 854fbbe01bbf131bf4cb88f8450d7084267668e1, or its released equivalent. Verify the binary version on each running host to ensure the correct build is in use.

Restrict UDP access to the supernodes until the upgrade is complete, employing firewall rules, private networks, or mesh-specific allowlists to control which systems can reach the control port. Implement a source-address filter to minimize the potential for unauthorized systems to send crafted datagrams. Post-upgrade, run the project's relevant tests and include a regression input for oversized token_size.

Confirm that the packet is rejected before any copying occurs and that malformed values do not alter control flow. Specifically test with the exact protocol version and a packet capture from a benign registration flow.

Further scrutiny should be given to crash dumps and service restarts, looking for signs of malformed registration traffic, such as repeated NAK messages, unusual community identifiers, source addresses not belonging to known edges, and supernode processes restarting after receiving traffic from the same host.

If a supernode may have executed compromised code, it should be isolated, and community and authentication material should be rotated. Review the edges that interacted with the compromised supernode. It is crucial to remember that a supernode acts as a trust broker, and compromise could result in the exposure of membership information, manipulation of discovery mechanisms, or redirection of peers. The severity of the impact hinges on the specific overlay design and the privileges held by the supernode process.

Ultimately, the patch should be supported by robust protocol discipline. Define a maximum token length at the wire-format layer, rejecting any declarations that exceed this limit, and ensure all copies occur within a checked destination. Log malformed packets without retaining sensitive data. Where possible, execute the parser within a memory-safe test harness.

The CVE-2026-136404 vulnerability underscores the potential for seemingly minor fields in control messages to engender significant network security concerns, emphasizing the need for a comprehensive approach to secure configuration, testing, and monitoring of n2n supernodes.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

A website chat that only answers from what you approve

Most website chatbots fail in a boring way. They answer confidently, and they answer wrong. If a visitor asks "Do you serve Whitefield on weekends?" and the bot makes something up, you have created a…

  • BPAI's chatbot only responds with business owner-approved information
  • Visitors can ask questions in their own words, AI provides approved answers
  • Human team members can take over when AI lacks specific information

Updating a public counter every 5 minutes on a free plan

ARLTS has a public "impact board" at arlts.org/impact: how many people have visited, and how many were active today, this week, and this month. The numbers come from our analytics tool (PostHog).

  • ARLTS public "impact board" now updates every 5 minutes
  • Modification of cloud function reduces load by requesting only two lightest questions
  • Visitor numbers displayed within 11 minutes, improvement from hourly updates

ruflo's default MCP bridge exposed terminal execution to the network

ruflo's default MCP bridge exposed terminal execution to the network ruflo is an agent meta-harness with a Model Context Protocol bridge.

  • Ruflo's default Docker Compose deployment exposed unauthenticated endpoints
  • CVE-2026-59726 allowed remote code execution in versions before 3.16.3
  • Upgrading to version 3.16.3 or later remediated the vulnerability

How to run your test suite in a clean microVM with sandscale sandbox run

Sometimes you want to know whether your tests pass on a clean machine, not on the laptop that has accumulated three years of global packages. Or you are about to run a test suite an agent changed and would rather it did not run next to your SSH keys. The Sandscale CLI has one command for this: sandscale sandbox run .

  • Use sandscale sandbox run command to run test suite in clean microVM.
  • --sync . flag copies current folder to sandbox's /workspace directory.
  • --keep flag preserves sandbox for further inspection upon failure.

devnet-fixtures: funded wallets, mints and token balances from a YAML file

An end-to-end test for a Solana app needs a starting state before it can check anything. There must be a wallet with some SOL to pay fees, a second wallet to receive, a mint with known decimals, token accounts, and balances the test can assert on.

  • Devnet-fixtures simplifies Solana app testing with YAML config
  • Supports localnet, devnet, testnet, custom URLs
  • Handles airdrops with retries and fallback funders

More from Friday 27 November →