Interface spoofing via unescaped preview-image CSS
Published May 5, 2025 · Updated May 5, 2025
CSS injection in Misskey 12.0.0 through 2025.4.0 allows remote attackers to alter URL-preview styling through a crafted page. UrlPreviewService.wrap returns non-HTTP thumbnail URLs unchanged, and MkUrlPreview interpolates the returned string into a background-image style without CSS-safe binding. Rendering a note linked to the crafted page can cover interface content with attacker-controlled styling, enabling deceptive credential prompts and exposing a viewer's address through direct resource requests.
Summary
What happened
CSS injection in Misskey 12.0.0 through 2025.4.0 allows remote attackers to alter URL-preview styling through a crafted page. UrlPreviewService.wrap returns non-HTTP thumbnail URLs unchanged, and MkUrlPreview interpolates the returned string into a background-image style without CSS-safe binding. Rendering a note linked to the crafted page can cover interface content with attacker-controlled styling, enabling deceptive credential prompts and exposing a viewer's address through direct resource requests.
The record
- CVE
- CVE-2025-46340
- Published
- May 5, 2025
- Updated
- May 5, 2025
- Vendor
- Misskey Project
- Product
- Misskey
- Classifications
- CWE-20, CWE-116
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 5, 2025CVE publishedPublication date reported by the CVE source.
- May 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 12.0.0, < 2025.4.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream MkUrlPreview CSS injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo