一、 漏洞 CVE-2025-46340 基础信息
漏洞信息
                                        # Misskey 在 `MkUrlPreview` 中存在的 CSS 样式注入漏洞

## 漏洞概述
Misskey是一个开源的联邦社交媒体平台。在版本12.0.0到2025.4.1之间,由于`UrlPreviewService`和`MkUrlPreview`中的验证漏洞,攻击者可以注入任意CSS到`MkUrlPreview`组件中。这不仅会导致用户身份泄露,还可以在客户端发起进一步的攻击。

## 影响版本
- 从版本12.0.0 到 2025.4.1之前的版本

## 细节
- `UrlPreviewService.wrap`在使用不同于`http`或`https`的协议时,会返回原始URL。这可能无法被Misskey正确解析。
- `MkUrlPreview`在应用`background-image`属性时未对CSS进行转义,攻击者能够构建一个URL,使其任意样式应用于预览元素。
- 攻击者可以构造CSS注入载荷,制造虚假错误信息,使用户泄露其凭证或其他敏感信息。

## 影响
- 理论上,攻击者可以欺骗用户泄露他们的凭证或其他敏感信息。
- 版本2025.4.1已修复此漏洞。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Misskey CSS Style Injection Vulnerability In `MkUrlPreview`
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
来源:美国国家漏洞数据库 NVD
漏洞类别
输入验证不恰当
来源:美国国家漏洞数据库 NVD
漏洞标题
Misskey 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Misskey是Misskey开源的一个永久免费的开源联合社交媒体平台。 Misskey 12.0.0至2025.4.1之前版本存在安全漏洞,该漏洞源于UrlPreviewService和MkUrlPreview验证不足,可能导致CSS注入攻击。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-46340 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-46340 的情报信息