Togoder security

npm package security report

@scalar/openapi-upgrader npm package: is it safe?

Risky patterns found that deserve a look.

Needs review Version 0.4.0 Files reviewed 14 Size 74.9 KB Scanned

Summary

Togoder Security scanned the npm package @scalar/openapi-upgrader@0.4.0 on Oct 6, 2026. An AI review of 14 source files produced 1 low severity finding. The overall verdict is medium: the findings flag risky but common patterns (dynamic code, unsafe defaults, broad file or network access) rather than confirmed malware.

0
critical
0
high
0
medium
1
low

Findings 1

low

Network request at import time

NPS-106E271844CD

The file performs top-level 'await fetch()' calls to external URLs (STRIPE_URL_3_0 and PETSTORE_URL_2_0) from '@scalar/helpers/url/oas-document-fixtures'. This means importing this module triggers network requests immediately, which is unexpected for a benchmark file. If the referenced URLs are ever compromised or changed, this could be leveraged for data ingestion or tracking. It also creates a dependency on external service availability, though in this benchmark context the URLs appear to be legitimate fixture sources.

dist/upgrade.bench.js:8

Files reviewed

FileVerdictWhat the reviewer saw
dist/upgrade.bench.js medium The benchmark file is largely benign, but it performs top-level network fetches to external fixture URLs at import time, which is a minor supply-chain concern rather than active malicious behavior.
dist/2.0-to-3.0/index.js safe Cleared by Jev triage; no further analysis needed
dist/2.0-to-3.0/upgrade-from-two-to-three.js safe Cleared by Jev triage; no further analysis needed
dist/3.0-to-3.1/index.js safe This file only contains a simple re-export statement with no executable logic or malicious patterns.
dist/3.0-to-3.1/upgrade-from-three-to-three-one.js safe Cleared by Jev triage; no further analysis needed
dist/3.1-to-3.2/index.js safe Cleared by Jev triage; no further analysis needed
dist/3.1-to-3.2/migrate-objects.js safe No malicious patterns detected
dist/3.1-to-3.2/migrate-tag-groups.js safe No malicious patterns detected; the module only performs pure in-memory document transformation with no I/O, network, process, or dynamic code execution.
dist/3.1-to-3.2/upgrade-from-three-one-to-three-two.js safe Cleared by Jev triage; no further analysis needed
dist/helpers/clone-document.js safe Cleared by Jev triage; no further analysis needed
dist/helpers/traverse.js safe Cleared by Jev triage; no further analysis needed
dist/index.js safe Cleared by Jev triage; no further analysis needed
dist/upgrade-incompatibility-error.js safe Cleared by Jev triage; no further analysis needed
dist/upgrade.js safe No malicious patterns detected; the code performs local OpenAPI document upgrade logic with no network, filesystem, credential, or dynamic execution activity.

Scanned versions of @scalar/openapi-upgrader

VersionVerdictFilesScanned
0.4.0 Needs review 14 Oct 6, 2026

Frequently asked questions

Is @scalar/openapi-upgrader safe to use?

No confirmed malware was found in @scalar/openapi-upgrader@0.4.0, but the review flagged 1 low severity finding for risky patterns worth checking before you rely on it.

Does @scalar/openapi-upgrader contain malware?

No malware was identified in @scalar/openapi-upgrader@0.4.0 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.

How was @scalar/openapi-upgrader checked?

Togoder Security downloaded the published npm package and had an AI model read its 14 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.

How do I scan @scalar/openapi-upgrader together with the rest of my dependencies?

Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in @scalar/openapi-upgrader@0.4.0, cost nothing.

Related security reports