# CVE-2022-21671: Potential exposure of Replit tokens to an Unauthorized Actor in @replit/crosis

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-01-11T15:05:11.000Z
- Modified: 2026-06-17T04:26:43.827Z
- Also known as: GHSA-7w54-gp8x-f33m
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

@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.

(As written by CVE List.)

## Affected

- replit crosis: < 7.3.1; before 7.3.1
- @replit/crosis (npm): before 7.3.1

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/replit/crosis/security/advisories/GHSA-7w54-gp8x-f33m> (mitigation, third-party-advisory, web)
- <https://github.com/replit/crosis/commit/e44b6a8f5fa28cb2872e3c19bb8a205bb5bfc281> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21671> (advisory)
- <https://github.com/replit/crosis> (package)

## Sources

- CVE List: [CVE-2022-21671](https://www.cve.org/CVERecord?id=CVE-2022-21671), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-7w54-gp8x-f33m](https://github.com/advisories/GHSA-7w54-gp8x-f33m), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-21671](https://nvd.nist.gov/vuln/detail/CVE-2022-21671), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21671 · Whole record: https://cve.day/CVE-2022-21671.json · Rebuilt by cve.day 2026-11-25T22:58:09.169Z
