Scan your whole stack
Are you using @medusajs/user?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.23.2-preview-20261130205001
@medusajs/user was last scanned on 30 Nov 2026 at version 2.23.2-preview-20261130205001. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.23.2-preview-20261130205001 LATEST | 30 Nov 2026 | No rules fired |
| 2.23.2-snapshot-20261130133824 | 30 Nov 2026 | No rules fired |
| 2.23.2-snapshot-20261130130543 | 30 Nov 2026 | No rules fired |
| 2.23.2-snapshot-20261127104753 | 27 Nov 2026 | Not shown |
| 2.23.2-snapshot-20261127103409 | 27 Nov 2026 | Not shown |
Findings for v2.23.2-preview-20261130205001. 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 2.23.2-preview-20261130205001; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
User Module for Medusa: manages admin users and invites, including generating and validating invite tokens. It's installed and registered by default with @medusajs/medusa, which passes it the JWT settings from your project config, so Medusa applications use it through the Modules.USER service rather than installing this package directly.
| Package | @medusajs/user |
| Type | Commerce Module |
| Module key | Modules.USER ("user") |
| Registered by default | Yes |
| Import from | @medusajs/medusa/user |
No installation needed. The module ships with @medusajs/medusa and is registered by defineConfig.
To customize the module's options, such as the invite token's validity, register it in medusa-config.ts:
import { defineConfig } from "@medusajs/framework/utils"
module.exports = defineConfig({
// ...
modules: [
{
resolve: "@medusajs/medusa/user",
options: {
jwt_secret: process.env.JWT_SECRET,
valid_duration: 60 * 60 * 24,
},
},
],
})
| Option | Type | Description | Default |
|---|---|---|---|
jwt_secret |
string |
Secret used to sign invite tokens (or the private key when using asymmetric signing). Required: the module throws on startup if it's missing. | projectConfig.http.jwtSecret, then the JWT_SECRET environment variable (set by defineConfig) |
jwt_public_key |
string |
Public key used to verify invite tokens when using asymmetric signing. | projectConfig.http.jwtPublicKey (set by defineConfig) |
valid_duration |
number |
How long an invite token is valid, in seconds. | jwt_options.expiresIn, then 86400 (24 hours) |
jwt_options |
object |
jsonwebtoken sign options, such as algorithm. |
projectConfig.http.jwtOptions (set by defineConfig) |
jwt_verify_options |
object |
jsonwebtoken verify options, such as algorithms. Falls back to jwt_options when not set. |
projectConfig.http.jwtVerifyOptions (set by defineConfig) |
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.