You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: npm query, npm sbom, and 13 other subcommands get incorrect run injection #2663
NPM_SUBCOMMANDS in npm_cmd.rs is missing 15 official npm subcommands. When a user runs any of these through RTK, the run subcommand is incorrectly injected, turning valid commands into broken ones.
NPM_SUBCOMMANDS list is missing 15 official npm subcommands, causing incorrect run injection that breaks commands like npm query, npm sbom, and npm completion; fix by adding the missing entries to src/cmds/js/npm_cmd.rs.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/cmds/js/npm_cmd.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
There is still no open implementation PR, so I am completing this against current develop. I will add all 15 documented npm commands to the production allowlist and a dedicated regression list so future refactors cannot silently reintroduce run injection.
Activity
pszymkowiak commentedon Jun 27, 2026
🔍 Automated Triage
bughighSummary
NPM_SUBCOMMANDS list is missing 15 official npm subcommands, causing incorrect
runinjection that breaks commands likenpm query,npm sbom, andnpm completion; fix by adding the missing entries to src/cmds/js/npm_cmd.rs.📁 Relevant files
src/cmds/js/npm_cmd.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
arjunprakash027 commentedon Jun 27, 2026
@pszymkowiak - can I take a look at this issue?
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add npm 9/10 subcommands to the run-injection allowlist
fix(npm): add 15 missing subcommands to prevent incorrect `run` injec…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
lntutor commentedon Jul 20, 2026
There is still no open implementation PR, so I am completing this against current develop. I will add all 15 documented npm commands to the production allowlist and a dedicated regression list so future refactors cannot silently reintroduce
runinjection.fix(npm,lint): remove hardcoded allowlists, forward args untouched
fix(npm,lint): remove hardcoded allowlists, forward args untouched
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm,lint): remove hardcoded allowlists, forward args untouched
fix(npm): add 15 missing subcommands to prevent incorrect `run` injec…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm): add 15 missing npm subcommands to prevent incorrect run inj…
fix(npm,lint): remove hardcoded allowlists, forward args untouched
fix(lint): remove `lint` script name from lint rewrite rule