# CVE-2025-46340: Misskey CSS Style Injection Vulnerability In `MkUrlPreview`

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-05-05T18:35:37.852Z
- Modified: 2026-06-17T09:26:15.943Z
- Weaknesses: CWE-20, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Misskey is an open source, federated social media platform. Starting in version 12.0.0 and prior to version 2025.4.1, due to an oversight in the validation performed in `UrlPreviewService` and `MkUrlPreview`, it is possible for an attacker to inject arbitrary CSS into the `MkUrlPreview` component. `UrlPreviewService.wrap` falls back to returning the original URL if it's using a protocol that is likely to not be understood by Misskey, IE something other than `http` or `https`. This both can de-anonymize users and_allow further attacks in the client. Additionally, `MkUrlPreview` doesn't escape CSS when applying a `background-image` property, allowing an attacker to craft a URL that applies arbitrary styles to the preview element. Theoretically, an attacker can craft a CSS injection payload to create a fake error message that can deceive the user into giving away their credentials or similar sensitive information. Version 2025.4.1 contains a patch for the issue.

(As written by CVE List.)

## Affected

- misskey-dev misskey: >= 12.0.0, < 2025.4.1
- misskey misskey: from 12.0.0 before 2025.4.1

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/misskey-dev/misskey/security/advisories/GHSA-3p2w-xmv5-jm95> (vendor-advisory)
- <https://github.com/misskey-dev/misskey/commit/d10fdfe9738b17a9d81037c031b40a2cc4cb8038> (patch)

## Sources

- CVE List: [CVE-2025-46340](https://www.cve.org/CVERecord?id=CVE-2025-46340), CVE Terms of Use, modified 2025-05-05
- NVD: [CVE-2025-46340](https://nvd.nist.gov/vuln/detail/CVE-2025-46340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46340 · Whole record: https://cve.day/CVE-2025-46340.json · Rebuilt by cve.day 2026-11-25T22:58:57.598Z
