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

@medusajs/medusa-oas-cli

Latest version: v2.23.2-preview-20261130205001

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: nicolas-gorga, olijuhl, sebrindom, shahednasser, sradevski
37,518 Stars
5,585 Forks
131 Versions
51.5K Downloads
TypeScript Repo language

Scan summary

@medusajs/medusa-oas-cli was last scanned on 30 Nov 2026 at version 2.23.2-preview-20261130205001. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 131 versions; the latest 5 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 2.23.2-preview-20261130205001.
  • Downloads: 51,454 downloads.

Versions

131 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 2.23.2-preview-20261130205001

Findings

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.

README

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

@medusajs/medusa-oas-cli is a CLI for generating and processing the OpenAPI Specifications (OAS) of the Medusa Store and Admin APIs. Use its oas command to produce an OAS file for Medusa's API routes (optionally merged with OAS JSDoc from your own routes), and its docs command to prepare an OAS file for Redocly's API documentation tools. The Medusa monorepo uses it to build the API reference.

At a glance

Package @medusajs/medusa-oas-cli
Type Internal tooling
Binary medusa-oas

Installation

npm install --save-dev @medusajs/medusa-oas-cli

Usage

Generate the Store API OAS, merged with the OAS JSDoc in your project's src directory:

npx medusa-oas oas --type store --paths ./src --out-dir ./oas

Preview it with Redocly:

npx medusa-oas docs --src-file ./oas/store.oas.json --preview

In the Medusa monorepo, run it with yarn medusa-oas <command> from the repository root.

Commands

oas

Generates <type>.oas.json (admin.oas.json, store.oas.json, or combined.oas.json). By default, it starts from the published OAS of the installed @medusajs/medusa version at https://docs.medusajs.com/api/download/<type>?version=<version>, falling back to the latest published OAS if that version has none; with --local, it builds the OAS from the JSDoc in the installed @medusajs/medusa package. Invalid OAS throws an error and no file is written, unless --force is passed.

Option Description Default
-t, --type <type> Required. API to generate: admin, store, or combined (admin and store merged). -
-o, --out-dir <outDir> Output directory. Created if missing. Current directory
-p, --paths <paths...> Additional directories to crawl for OAS JSDoc. Their paths and schemas are merged into the output. -
-b, --base <base> Custom base OAS file. Its paths, tags, and components are merged; other properties override the base. -
-D, --dry-run Validate without writing files. false
-F, --force Ignore OAS validation errors and write the files. false
--local Build from the local @medusajs/medusa JSDoc instead of the published OAS. false
docs

Sanitizes an OAS file for Redocly's API documentation viewer and writes it as YAML.

Option Description Default
-s, --src-file <srcFile> Required. Path to the source OAS file. -
-o, --out-dir <outDir> Output directory. Created if missing. Current directory
--config <config> Redocly config file merged with the default configuration. -
-D, --dry-run Sanitize without writing files. false
--clean Delete the output directory's contents first. false
--split Write a multi-file structure (redocly split). false
--preview Open a browser preview (redocly preview-docs). Doesn't write files. false
--html Generate a static HTML file (redocly build-docs). false
--main-file-name <mainFileName> Name of the main YAML file. openapi.yaml

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 @medusajs/medusa-oas-cli

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

PolinRider Returns
Research

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

CVE

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

Frame 2085668439 (1)
Group 1261154229