Vulnerabilities in pkg:npm/misskey-js

PACKAGE
Advisory Identifier: GHSA-wwrj-3hvj-prpm
Advisory Summary

CVE-2025-66482 is a MODERATE (CVSS 6.5) misskey has a login rate vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Misskey js libraries in the npm ecosystem. The issue involves misskey has a login rate limit bypass via spoofed x-forwarded-for header. Remediation is available by upgrading affected packages to version 2025.12.0-alpha.2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/misskey-js

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/misskey-js. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wwrj-3hvj-prpm CVE-2025-66482 MODERATE Misskey has a login rate limit bypass via spoofed X-Forwarded-For header
GHSA-496g-mmpw-j9x3 CVE-2025-66402 HIGH misskey.js's export data contains private post data

CVE-2025-66482 at a Glance

CVE Identifier CVE-2025-66482
GHSA Identifier GHSA-wwrj-3hvj-prpm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Misskey js
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-66482

To remediate this vulnerability, upgrade all affected Misskey js dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

misskey-js fixed: 2025.12.0-alpha.2
npm install misskey-js@2025.12.0-alpha.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls misskey-js

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-66482, inspect your project dependencies using npm:

npm ls misskey-js

Analyze the terminal output to locate any version of Misskey js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2025.12.0-alpha.2), your application is affected.

Note: The npm ls misskey-js command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Misskey js, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary When 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. ### Workaround If you are running Misskey with a trusted reverse proxy, you should *not* be affected by this vulnerability. - There is no workaround for the Misskey itself. Please update Misskey to the latest version or set up a trusted reverse proxy. - From v2025.9.1 to v2025.11.1, workaround is available. Set `trustProxy: false` in config file. - 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. ### Details [Fastify recommend not trusting X-Forwarded-For IPs](https://fastify.dev/docs/latest/Reference/Server/#trustproxy) Due to misconfiguration in https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/SigninApiService.ts#L94 attacks can spoof their IPs. ### PoC ``` POST /api/signin-flow HTTP/1.1 Host: misskey.localhost:3123 Content-Length: 45 Content-Type: application/json Connection: keep-alive X-Forwarded-For: 127.1.1.31, 1.1.1.12 {"username":"admin", "password":"password"} ``` ![image](https://github.com/user-attachments/assets/ce9f77e2-b339-4081-86a6-d44ed42e9ca5) ### Impact An attacker can brute force accounts bypassing rate limiting protection.

CVE-2025-66482 Affected Misskey js Versions

1 component(s)
Fixed Versions:
2025.12.0-alpha.2
Product / Package Ecosystem Affected Versions Fixed Version
misskey-js
npm
≥ 2025.9.1
< 2025.12.0-alpha.2
2025.12.0-alpha.2

References

Frequently Asked Questions

What is CVE-2025-66482?
CVE-2025-66482 is a security vulnerability in Misskey js involving Misskey has a login rate limit bypass via spoofed X-Forwarded-For header under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Misskey js versions are affected?
Affected versions include releases prior to 2025.12.0-alpha.2 across affected packages: misskey-js.
What version fixes CVE-2025-66482?
Upgrading to 2025.12.0-alpha.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is misskey-js affected?
Yes, misskey-js is affected in releases prior to 2025.12.0-alpha.2. Upgrade your dependency to 2025.12.0-alpha.2 or later.
What is the CVSS score of CVE-2025-66482?
CVE-2025-66482 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2025-66482?
CVE-2025-66482 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check npm dependencies for CVE-2025-66482?
Run the dependency tree command: 'npm ls misskey-js'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wwrj-3hvj-prpm",
  "modified" : "2026-01-06T22:41:27Z",
  "published" : "2025-12-15T20:59:59Z",
  "aliases" : [ "CVE-2025-66482" ],
  "summary" : "Misskey has a login rate limit bypass via spoofed X-Forwarded-For header",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "misskey-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2025.9.1"
      }, {
        "fixed" : "2025.12.0-alpha.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/misskey-dev/misskey/security/advisories/GHSA-wwrj-3hvj-prpm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66482"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/misskey-dev/misskey/commit/5512898463fa8487b9e6488912f35102b91f25f7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/misskey-dev/misskey"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1188", "CWE-307" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-15T20:59:59Z",
    "nvd_published_at" : "2025-12-16T00:16:02Z"
  }
}