{"id":"CVE-2025-66482","aliases":["CVE-2025-66482","GHSA-wwrj-3hvj-prpm"],"related":[],"kind":"vulnerability","state":"published","title":"Misskey has a login rate limit bypass via spoofed X-Forwarded-For header","summary":"Misskey is an open source, federated social media platform. Attackers who use an untrusted reverse proxy or not using a reverse proxy at all can bypass IP rate limiting by adding a forged X-Forwarded-For header. Starting with version 2025.9.1, an option (`trustProxy`) has been added in config file to prevent this from happening. However, it is initialized with an insecure default value before version 2025.12.0-alpha.2, making it still vulnerable if the configuration is not set correctly. This is patched in v2025.12.0-alpha.2 by flipping default value of `trustProxy` to `false`. Users of a trusted reverse proxy who are unsure if they manually overode this value should check their config for optimal behavior. Users are running Misskey with a trusted reverse proxy should not be affected by this vulnerability. From v2025.9.1 to v2025.11.1, workaround is available. Set `trustProxy: false` in config file.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Misskey is an open source, federated social media platform. Attackers who use an untrusted reverse proxy or not using a reverse proxy at all can bypass IP rate limiting by adding a forged X-Forwarded-For header. Starting with version 2025.9.1, an option (`trustProxy`) has been added in config file to prevent this from happening. However, it is initialized with an insecure default value before version 2025.12.0-alpha.2, making it still vulnerable if the configuration is not set correctly. This is patched in v2025.12.0-alpha.2 by flipping default value of `trustProxy` to `false`. Users of a trusted reverse proxy who are unsure if they manually overode this value should check their config for optimal behavior. Users are running Misskey with a trusted reverse proxy should not be affected by this vulnerability. From v2025.9.1 to v2025.11.1, workaround is available. Set `trustProxy: false` in config file.","source":"cvelist"},{"lang":"en","text":"### Summary\nWhen using an untrusted reverse proxy or not using a reverse proxy at all, attackers can bypass IP rate limiting by adding a forged X-Forwarded-For header. Starting with version 2025.9.1, an option (`trustProxy`) has been added in config file to prevent this from happening. However, it is initialized with an insecure default value before version 2025.12.0, making it still vulnerable if the configuration is not set correctly.\n\n### Workaround\n\nIf you are running Misskey with a trusted reverse proxy, you should *not* be affected by this vulnerability.\n\n- There is no workaround for the Misskey itself. Please update Misskey to the latest version or set up a trusted reverse proxy.\n- From v2025.9.1 to v2025.11.1, workaround is available. Set `trustProxy: false` in config file.\n- This is patched in v2025.12.0 by flipping default value of `trustProxy` to `false`. If you are using trusted reverse proxy and not remember you manually overrided this value, please take time to check your config for optimal behavior.\n\n### Details\n[Fastify recommend not trusting X-Forwarded-For IPs](https://fastify.dev/docs/latest/Reference/Server/#trustproxy)\nDue to misconfiguration in https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/SigninApiService.ts#L94 attacks can spoof their IPs.\n\n### PoC\n\n```\nPOST /api/signin-flow HTTP/1.1\nHost: misskey.localhost:3123\nContent-Length: 45\nContent-Type: application/json\nConnection: keep-alive\nX-Forwarded-For: 127.1.1.31, 1.1.1.12\n\n{\"username\":\"admin\",\n\t\"password\":\"password\"}\n```\n![image](https://github.com/user-attachments/assets/ce9f77e2-b339-4081-86a6-d44ed42e9ca5)\n\n\n### Impact\nAn attacker can brute force accounts bypassing rate limiting protection.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Misskey es una plataforma de redes sociales de código abierto y federada. Los atacantes que utilizan un proxy inverso no confiable o que no utilizan ningún proxy inverso pueden eludir la limitación de velocidad de IP añadiendo un encabezado X-Forwarded-For falsificado. A partir de la versión 2025.9.1, se ha añadido una opción ('trustProxy') en el archivo de configuración para evitar que esto suceda. Sin embargo, se inicializa con un valor predeterminado inseguro antes de la versión 2025.12.0-alpha.2, haciéndolo aún vulnerable si la configuración no se establece correctamente. Esto se corrige en la v2025.12.0-alpha.2 cambiando el valor predeterminado de 'trustProxy' a 'false'. Los usuarios de un proxy inverso confiable que no estén seguros si anularon manualmente este valor deberían revisar su configuración para un comportamiento óptimo. Los usuarios que ejecutan Misskey con un proxy inverso confiable no deberían verse afectados por esta vulnerabilidad. Desde la v2025.9.1 hasta la v2025.11.1, una solución alternativa está disponible. Establezca 'trustProxy: false' en el archivo de configuración.","source":"nvd"}],"published":"2025-12-15T20:59:59.000Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-307","CWE-1188"],"affected":[{"ranges":[{"version":">= 2025.9.1, < 2025.12.0-alpha.2","status":"affected"}],"vendor":"misskey-dev","product":"misskey","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2025.9.1","status":"affected","fixed":"2025.12.0-alpha.2"}],"ecosystem":"npm","package":"misskey-js","purl":"pkg:npm/misskey-js","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"13.1.0","fixed":"2025.12.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"},{"status":"affected","version":"13.0.0"}],"vendor":"misskey","product":"misskey","cpe":"cpe:2.3:a:misskey:misskey:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/misskey-dev/misskey/security/advisories/GHSA-wwrj-3hvj-prpm","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/misskey-dev/misskey/commit/5512898463fa8487b9e6488912f35102b91f25f7","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66482","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/misskey-dev/misskey","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-12-16T14:37:27.348Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66482","url":"https://www.cve.org/CVERecord?id=CVE-2025-66482","licence":"CVE Terms of Use","modified":"2025-12-16T15:09:19.925Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wwrj-3hvj-prpm","url":"https://github.com/advisories/GHSA-wwrj-3hvj-prpm","licence":"CC-BY-4.0","modified":"2026-02-03T03:16:38.620Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66482","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66482","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.427Z","epss":{"score":0.00363,"percentile":0.32185,"date":"2026-12-01T12:00:22.000Z"}}