← Home

@mongosh/cli-repl

MongoDB Shell CLI REPL Package

14
Versions
Apache-2.0
License
No
Install Scripts
Missing
Provenance

Supply chain provenance

Status for the latest visible version.

No SLSA provenance npm registry signatures gitHead linked

Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.

Maintainers

devtoolsbotaddaleaxalexander_schrollnirinchevmcasimir_mdb

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
semgrep semgrep:env-spread AI (semgrep): Spreading process.env in smoke-tests.js is standard test harness behavior for a CLI tool. ai
semgrep semgrep:eval-usage AI (semgrep): eval() is the core mechanism of a REPL; expected and intentional in node-repl-fix-history-rewrite-on-error.js. ai
semgrep semgrep:dynamic-require AI (semgrep): Dynamic require of builtins is a documented webpack compatibility pattern in mongosh. ai
semgrep semgrep:child-process-import AI (semgrep): child_process used in smoke-tests.js to spawn the shell binary; expected for a CLI test harness. ai
semgrep semgrep:hex-decode AI (semgrep): Hex decoding is used for TLS certificate thumbprint lookup; legitimate and documented use. ai

Versions (showing 14 of 14)

Version Deps Published
2.8.3 34 / 17
2.8.2 32 / 17
2.8.1 32 / 17
2.7.0 32 / 17
2.6.0 32 / 17
2.5.10 33 / 18
2.5.9 32 / 18
2.5.8 31 / 18
2.5.7 31 / 18
2.5.6 31 / 18
2.5.5 31 / 18
2.5.3 31 / 18
2.5.2 31 / 18
2.5.1 31 / 18

v2.8.3

2 findings
HIGH env-spread: lib/smoke-tests.js:328 semgrep

Spreading entire process.env into an object — may capture all secrets Source: https://github.com/mongodb-js/mongosh/blob/d5a0d964b21e3dc651a3a8391f21c87117e74514/lib/smoke-tests.js#L328 326 | const proc = (0, child_process_1.spawn)(executable, [...args], { 327 | stdio: 'pipe', > 328 | env: { ...process.env, ...env }, 329 | }); 330 | proc.stdin.on('error', (e) => {

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v2.8.2

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.8.1

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.7.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.6.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v2.5.10

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.5.9

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.5.8

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.5.7

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.5.6

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v2.5.5

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v2.5.3

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v2.5.2

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v2.5.1

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.