CVE-2022-21671

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21671
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-21671.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-21671
Aliases
Published
2022-01-11T15:05:11Z
Modified
2025-11-28T03:18:45.317279Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Potential exposure of Replit tokens to an Unauthorized Actor in @replit/crosis
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21671.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/replit/crosis

Affected ranges

Type
GIT
Repo
https://github.com/replit/crosis
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.2
v1.0.3
v1.0.5

v2.*

v2.0.0
v2.3.0

v3.*

v3.0.1
v3.0.2

v4.*

v4.0.0
v4.0.1
v4.1.0
v4.1.0-beta.0
v4.1.2
v4.1.3

v5.*

v5.0.0
v5.0.1

v6.*

v6.0.0-beta.0
v6.0.0-beta.1
v6.0.0-beta.10
v6.0.0-beta.11
v6.0.0-beta.12
v6.0.0-beta.13
v6.0.0-beta.14
v6.0.0-beta.15
v6.0.0-beta.17
v6.0.0-beta.18
v6.0.0-beta.19
v6.0.0-beta.2
v6.0.0-beta.20
v6.0.0-beta.22
v6.0.0-beta.23
v6.0.0-beta.24
v6.0.0-beta.25
v6.0.0-beta.26
v6.0.0-beta.27
v6.0.0-beta.28
v6.0.0-beta.29
v6.0.0-beta.3
v6.0.0-beta.30
v6.0.0-beta.31
v6.0.0-beta.32
v6.0.0-beta.33
v6.0.0-beta.34
v6.0.0-beta.35
v6.0.0-beta.36
v6.0.0-beta.4
v6.0.0-beta.5
v6.0.0-beta.6
v6.0.0-beta.7
v6.0.0-beta.8
v6.0.0-beta.9
v6.0.4
v6.1.0
v6.2.0
v6.3.0

v7.*

v7.0.0
v7.1.0
v7.1.1
v7.2.0
v7.3.0