PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseGHSA-j68c-59h4-h9hg

GHSA-j68c-59h4-h9hg: 
JavaScript vulnerability analysis and mitigation

Summary

Moved here from a public issue that should have been reported privately.

What is wrong

Code capability calls authorize their chat differently from the other code chat routes. POST /api/assistant/artifacts/runtime/check/capability (and /runtime/capabilities) only check that the chat exists, is not archived, and that its tool scope contains the capability name. They do not check that the user can still read the chat's Project. Check start, record and gate for the same chat require the code_check / code_open grant and Project read, and return 403.

How to reproduce


# Scoped chat with allowedTools ["demo.read"] (no code_check), or a chat in a Project the user can no longer read:

# POST /runtime/check/start  -> 403

# POST /runtime/check/capability {"name":"demo.read","input":{},"conversationId":"<chat>"} -> 200
bun test packages/assistant/src/artifacts/chat-reference.test.ts   # route table shows the shared fixture

Suspected cause

packages/assistant/src/artifacts/capability-runtime.ts:73 (authorizeWithChat) resolves the chat itself instead of using requireToolChat from chat-access.ts, so it has no Project read check, and the check route passes the capability name as the grant.

Proposal

Decide whether capability calls from a chat must also require Project read (likely yes, like every other code chat path) and whether the check route should require code_check. Then route authorizeWithChat through requireToolChat.

Fix direction

Route capability calls through the same chat access check (requireToolChat in packages/assistant/src/artifacts/chat-access.ts) that check start, record and gate use, so a person who lost read access to the chat's Project can no longer run its capabilities.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-whwv-ppvg-jwgxHIGH7.4
  • JavaScript logoJavaScript
  • @veritasacta/verify
NoYesOct 23, 2026
GHSA-q96h-922g-m3h3MEDIUM6.5
  • JavaScript logoJavaScript
  • @zereight/mcp-gitlab
NoYesOct 24, 2026
GHSA-83jp-cppw-c3v6MEDIUMN/A
  • JavaScript logoJavaScript
  • llm-fw
NoYesOct 24, 2026
GHSA-j68c-59h4-h9hgMEDIUMN/A
  • JavaScript logoJavaScript
  • @k2b/cloud
NoYesOct 24, 2026
GHSA-cf8x-9m69-3gg3HIGHN/A
  • JavaScript logoJavaScript
  • bun
NoYesOct 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management