Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@xarenas107/nuxt-uncsrf

Latest version: v3.0.4

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: xarenas107
0 Stars
0 Forks
4 Versions
70 Downloads
TypeScript Repo language

Scan summary

@xarenas107/nuxt-uncsrf was last scanned on 26 Nov 2026 at version 3.0.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published on 26 Nov 2026.
  • Findings: No rules fired in version 3.0.4.
  • Downloads: 70 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.0.4 LATEST 26 Nov 2026 No rules fired
3.0.2 26 Nov 2026 No rules fired
3.0.1 26 Nov 2026 No rules fired
3.0.3 26 Nov 2026 Not shown

No rules fired in 3.0.4

Findings

Findings for v3.0.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.0.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Nuxt Unscrf

npm version npm downloads License Nuxt

  • ✨  Release Notes

🚀 Features

  • ⛰ Nuxt 4.7+ and Nitro 3 ready
  • 👌 Zero config: Configuration for common use cases
  • ⚡ Nitro ready: Customizable nitro storage.
  • ⚙️ Auto import: Provide auto import functions.
  • 🦾 Type strong: Written in typescript

📦 Install

npm i @xarenas107/nuxt-uncsrf -D 

🦄 Usage

Add @xarenas107/nuxt-uncsrf to the modules section of nuxt.config.ts.

export default defineNuxtConfig({
  modules: [
    '@xarenas107/nuxt-uncsrf'
  ]
})

By default csrf protection is applied only for routes /api. All methods are protected, including GET, HEAD and OPTIONS. If you need more control, use nitro route rules.

Each browser gets a random identifier, stored encrypted in the x-csrf-token cookie when a page is rendered. Requests without a valid token are rejected with a 403. Set NUXT_UNCSRF_SECRET or uncsrf.secret to your own secret.

Use false to disable protection

routeRules:{
  '/locale/**': {
    uncsrf: false,
  }
}

Protect other routes, or only some methods

routeRules:{
  '/form': {
    uncsrf: {},
  },
  '/api/**': {
    uncsrf: { methods: ['POST', 'PUT', 'PATCH', 'DELETE'] },
  }
}

You can customize storage

// define storage on `nuxt.config.ts`
export default defineNuxtConfig({
  uncsrf:{
    storage:{
      driver:'memory'
    }
  }
})

Or use a previously defined storage'

export default defineNuxtConfig({
  nitro:{
    kv:{
      'security':{
        driver:'memory',
      }
    }
  },
  uncsrf:{
    storage:'security'
  } 
})

That's it! You can now use @xarenas107/nuxt-uncsrf in your Nuxt app ✨

Limitations
  • The token is only read from the cookie, so protection relies on SameSite=Strict. It does not cover attacks from sibling subdomains.
  • Prerendered and cached pages (cache, swr, isr) do not issue tokens. useCsrf() gets one from the /_uncsrf endpoint on the client, so with endpoint: false a dynamic page has to be visited first.
  • CORS preflight requests carry no cookies, so OPTIONS is rejected unless excluded with methods.
  • An expired token is renewed once. Other requests sent at the same time with it can be rejected.
  • Identifiers that are no longer used are not removed from storage automatically.

⬆️ Migrating from v2

  • Nuxt 4.7+ and Nitro 3 are required. Nuxt 3 is no longer supported.
  • Tokens are issued per client, not per IP. Tokens issued by v2 are no longer valid, so clients get a new one on their next visit.
  • Only /api routes are protected by default. v2 protected every route except /_nuxt and /__nuxt for GET. Use routeRules with uncsrf: {} to protect other routes.
  • The cookie is httpOnly. It can no longer be read from client code, use useCsrf() instead.
  • useCsrf() returns { token, refresh } instead of { csrf }. token is a ref, and refresh() fetches the token from the /_uncsrf endpoint.
- const { csrf } = useCsrf()
+ const { token } = useCsrf()
  • A previously defined storage is declared in nitro.kv, not in nitro.storage.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @xarenas107/nuxt-uncsrf

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229