{"id":"CVE-2022-21671","aliases":["CVE-2022-21671","GHSA-7w54-gp8x-f33m"],"related":[],"kind":"vulnerability","state":"published","title":"Potential exposure of Replit tokens to an Unauthorized Actor in @replit/crosis","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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).\n\n### Patches\n\nThis was patched in 7.3.1, by updating the address of the fallback WebSocket polling proxy to the new one.\n\n### Workarounds\n\nSpecify the new address for the polling host (`gp-v2.replit.com`) in the `ConnectArgs`:\n\n```typescript\nconst connectOptions: ConnectArgs = {\n  // ...\n  pollingHost: 'gp-v2.replit.com',\n};\nclient.connect(connectOptions);\n```\n\n### For more information\n\nThanks to https://hackerone.com/orlserg for disclosing this.\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [replit/crosis](https://github.com/replit/crosis)\n* Email us at [security@replit.com](mailto:security@replit.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"replit/crosis es un cliente JavaScript que habla el protocolo de contenedores de Replit. En versiones anteriores a la 7.3.1, se presenta una vulnerabilidad que implica la exposición de información confidencial. Cuando es usada esta biblioteca como una forma de comunicarse programáticamente con Replit de forma independiente, si son presentados varios intentos fallidos de contactar con Replit mediante un WebSocket, la biblioteca intentará comunicarse usando un proxy basado en sondeo. La URL del proxy ha cambiado, por lo que cualquier comunicación realizada a la URL anterior podría potencialmente llegar a un servidor que está fuera del control de Replit y el token usado para conectarse al Repl podría ser obtenido por un atacante, conllevando a un compromiso total de ese Repl (no de la cuenta). Esto fue parcheado en la versión 7.3.1 actualizando la dirección del proxy de sondeo WebSocket fallback a la nueva. Como solución, el usuario puede especificar la nueva dirección del host de sondeo (\"gp-v2.replit.com\") en los \"ConnectArgs\". Se presenta más información sobre esta medida de mitigación en el aviso de seguridad de GitHub","source":"nvd"}],"published":"2022-01-11T15:05:11.000Z","modified":"2026-06-17T04:26:43.827Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 7.3.1","status":"affected"}],"vendor":"replit","product":"crosis","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.3.1"}],"ecosystem":"npm","package":"@replit/crosis","purl":"pkg:npm/%40replit/crosis","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.3.1"}],"vendor":"replit","product":"crosis","cpe":"cpe:2.3:a:replit:crosis:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/replit/crosis/security/advisories/GHSA-7w54-gp8x-f33m","tags":["mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/replit/crosis/commit/e44b6a8f5fa28cb2872e3c19bb8a205bb5bfc281","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21671","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/replit/crosis","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:57:02.594Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21671","url":"https://www.cve.org/CVERecord?id=CVE-2022-21671","licence":"CVE Terms of Use","modified":"2025-04-23T19:13:35.823Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7w54-gp8x-f33m","url":"https://github.com/advisories/GHSA-7w54-gp8x-f33m","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:07.120Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21671","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21671","licence":"Public domain","modified":"2026-06-17T04:26:43.827Z"}],"updatedAt":"2026-11-25T22:58:09.169Z","epss":{"score":0.01004,"percentile":0.63918,"date":"2026-12-01T12:00:22.000Z"}}