Potential exposure of Replit tokens to an Unauthorized Actor in @replit/crosis
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
@replit/crosis is a JavaScript client that speaks Replit's container protocol. A vulnerability that involves exposure of sensitive information exists in versions prior to 7.3.1. When using this library as a way to programmatically communicate with Replit in a standalone fashion, if there are multiple failed attempts to contact Replit through a WebSocket, the library will attempt to communicate using a fallback poll-based proxy. The URL of the proxy has changed, so any communication done to the previous URL could potentially reach a server that is outside of Replit's control and the token used to connect to the Repl could be obtained by an attacker, leading to full compromise of that Repl (not of the account). This was patched in version 7.3.1 by updating the address of the fallback WebSocket polling proxy to the new one. As a workaround, a user may specify the new address for the polling host (`gp-v2.replit.com`) in the `ConnectArgs`. More information about this workaround is available in the GitHub Security Advisory.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| replit | crosis | before 7.3.1 | 7.3.1 | Patch available | CNA |
| — | @replit/crosis (npm) | before 7.3.1 | 7.3.1 | Patch available | GHSA-7w54-gp8x-f33m |
- crosis Vendorreplit Affected before 7.3.1 Fixed in 7.3.1 Patch available CNA
- @replit/crosis (npm) Vendor— Affected before 7.3.1 Fixed in 7.3.1 Patch available GHSA-7w54-gp8x-f33m
Remediation
- Fix · CNA crosis (replit) Fixed in 7.3.1
- Fix · GHSA-7w54-gp8x-f33m @replit/crosis (npm) Fixed in 7.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21671
- 2026-10-03 Alias added: GHSA-7w54-gp8x-f33m
References
Sources
- CVE-2022-21671 · CVE Program
- CVE-2022-21671 · NVD
- FIRST EPSS
- GHSA-7w54-gp8x-f33m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences