CVE-2023-33495: Craft CMS HTML Injection Vulnerability

craftcms/cms Updated 02 Oct 2025

Summary

20/06/2023
No i
Moderate
6.1

CVE-2023-33495: Craft CMS vulnerable to HTML injection. Affects craftcms/cms versions < 4.4.9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Craft CMS is a popular content management system used for building websites and web applications. It provides a range of features for managing content, templates, and assets. Craft CMS versions up to 4.4.9 are susceptible to an HTML Injection vulnerability.

Vulnerability Detail

The HTML Injection vulnerability in Craft CMS allows an attacker to inject malicious HTML code into user-generated content. This can lead to various security risks, including cross-site scripting (XSS) attacks, session hijacking, and defacement of web pages. The vulnerability is rated as moderate severity with a CVSS score of 6.1.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading immediately is not possible, a temporary workaround is to sanitize user-generated content to prevent the injection of malicious HTML. This can be achieved by using HTML sanitization libraries or functions that remove or escape potentially dangerous HTML tags and attributes.

Conclusion

Craft CMS versions up to 4.4.9 are vulnerable to HTML Injection, which can lead to various security risks. It is crucial to upgrade to version 4.4.10 or later to mitigate this vulnerability. Sanitizing user-generated content can provide temporary protection until the upgrade is performed. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for craftcms/cms →

Share this vulnerability

FAQ

Craft CMS is a content management system designed for building websites and web applications. It offers a range of features for managing content, templates, and assets.

HTML Injection is a vulnerability that allows an attacker to inject malicious HTML code into user-generated content. This can lead to various security risks, including cross-site scripting (XSS) attacks and web page defacement.

The HTML Injection vulnerability in Craft CMS can enable attackers to perform cross-site scripting (XSS) attacks, hijack user sessions, and deface web pages. These risks can compromise the integrity and security of the affected website or application.

To mitigate this vulnerability, it is recommended to upgrade Craft CMS to version 4.4.10 or later. Additionally, sanitizing user-generated content can help prevent the injection of malicious HTML.

More information about upgrading Craft CMS can be found in the official upgrade guide provided by Craft CMS. The guide includes step-by-step instructions and considerations for a successful upgrade.

Related vulnerabilities

Recent vulnerabilities recorded for craftcms/cms.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback