{"id":"CVE-2022-21671","published":"2022-01-11T15:05:11Z","modified":"2025-04-23T19:13:35Z","title":"Potential exposure of Replit tokens to an Unauthorized Actor in @replit/crosis","vendor":"replit","product":"crosis","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01004,"percentile":0.63783,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/replit/crosis/security/advisories/GHSA-7w54-gp8x-f33m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/replit/crosis/commit/e44b6a8f5fa28cb2872e3c19bb8a205bb5bfc281","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":12.76},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"replit","affectedVersions":[{"vendor":"replit","product":"crosis","versions":["< 7.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:57:02.594507Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@replit/crosis","vulnerableRanges":["<7.3.1"],"patched":["7.3.1"],"from":["GHSA-7w54-gp8x-f33m"],"provenance":"source"}],"summary":{"text":"The flaw is in the Replit @replit/crosis JavaScript client, which speaks Replit's container protocol, in versions prior to 7.3.1, where the library's fallback poll-based proxy address points to a host that has since changed. An attacker who can get the library to send traffic to the outdated address (after multiple failed WebSocket connection attempts) could capture the token used to connect to a Repl and fully compromise that Repl, though not the owning account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:53Z"},"euvd":{"id":"EUVD-2022-0509","exploited":false,"provenance":"source"}}