# GHSA-WMHF-GHWH-CJ84: Reflected Cross-Site Scripting (XSS) in CMS Kit ContentPreview endpoint

- Database: GitHub
- Severity: CVSS 6.1 (Medium)
- Published: 2026-12-03
- Modified: 2026-12-03

## Affected versions

- Volo.CmsKit.Common.Web (NuGet): from 8.0.0, through 11.0.0

## Description

### Summary

The CMS Kit ContentPreview endpoint (POST /CmsKitCommonWidgets/ContentPreview) rendered caller-supplied Markdown/HTML content without authentication or server-side sanitization, allowing a reflected XSS payload to be returned in the HTTP response.

### Details

CmsKitCommonWidgetsController.ContentPreview accepted anonymous POST requests and passed the request's `content` value straight into ContentPreviewViewComponent, which rendered it through MarkdownToHtmlRenderer with AllowHtmlTags = true and PreventXSS = false. The resulting HTML was emitted via Html.Raw(...) in ContentFragment.cshtml with no server-side sanitization and no authorization check on the controller action.

Introduced by commit 22bceae61c ("Disable XSS prevention for content preview").

Fixed by commit 8471b6cdc6 ("Require authentication and sanitize content previews by default", PR #26514), which adds [Authorize] to the controller, defaults PreventXSS to true, and ties blog post previews to the blog's Prevent XSS feature. This fix is merged into the rel-11.0 branch but has not yet shipped in a tagged release (11.0.0 predates this commit).

This isssue has been fixed with this PR https://github.com/abpframework/abp/pull/26579

### Proof of concept

Unauthenticated request:

curl -s -X POST http://127.0.0.1:51601/CmsKitCommonWidgets/ContentPreview \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode 'content=<script>alert(1)</script>' \
  -o response.html -w "HTTP %{http_code}\n"

Returns HTTP 200 with the script tag reflected unescaped in the response body. Anonymous requests without an antiforgery cookie are not blocked; requests carrying an authenticated session or antiforgery cookie may be rejected by ABP's antiforgery validation.

### Impact

Reflected XSS: an attacker who can get a victim to submit a crafted `content` value to this unauthenticated endpoint (directly or via an auto-submitting form) can have arbitrary script rendered and executed in the victim's browser within the application's origin. This can be used for phishing and UI spoofing against anonymous visitors of applications that use the CMS Kit module. Execution within an authenticated editor's own preview session is a related, unverified risk.

Reported to Volosoft by security researcher Muhammed Ikbal Yildiz, who also reported it to the Turkish Cybersecurity Presidency (CVE reportedly reserved, identifier not yet provided). Coordinated disclosure is in progress; this advisory should stay as a draft until a patched release ships.

## References

- https://github.com/abpframework/abp/security/advisories/GHSA-wmhf-ghwh-cj84

Page: https://cve.now/GHSA-WMHF-GHWH-CJ84

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
