CVE-2020-19626: Craft CMS Cross-site Scripting Vulnerability

craftcms/cms Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
5.4

CVE-2020-19626: Craft CMS Cross-site Scripting Vulnerability. Affects craftcms/cms versions < 3.1.33. Fixed in 3.1.33. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Craft CMS is a popular content management system used for building websites and web applications. It provides a flexible and customizable platform for managing content and creating dynamic web pages. Craft CMS version 3.1.31 is affected by a Cross-site Scripting (XSS) vulnerability, which allows remote attackers to inject arbitrary web script or HTML. This vulnerability can be exploited through the '/admin/settings/sites/new' endpoint.

Vulnerability Detail

The Cross-site Scripting (XSS) vulnerability in Craft CMS version 3.1.31 allows attackers to inject malicious web script or HTML code into the affected application. This can lead to various security risks, such as stealing sensitive user information, performing unauthorized actions on behalf of the user, or defacing the website. The vulnerability originates from improper input sanitization and validation in the affected endpoint, which allows the execution of arbitrary code in the context of the user's browser.

How To Fix

Minimum fixed version

3.1.33

This is the first release that contains the fix.

composer require craftcms/cms:3.1.33

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by disabling or securing the '/admin/settings/sites/new' endpoint. This can be achieved by restricting access to the endpoint or implementing additional input validation and sanitization measures to prevent the execution of malicious code.

Conclusion

The Craft CMS XSS vulnerability in version 3.1.31 can be mitigated by upgrading to version 3.1.33 or later. It is important to promptly apply the necessary updates to ensure the security and integrity of the application. For further support and assistance 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 used for building websites and web applications. It provides a flexible and customizable platform for managing content and creating dynamic web pages.

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts or HTML code into web pages viewed by other users. This can lead to various security risks, such as stealing sensitive information or performing unauthorized actions on behalf of the user.

The Craft CMS XSS vulnerability allows remote attackers to inject arbitrary web script or HTML code into the application. This can lead to various security risks, such as stealing user information, performing unauthorized actions, or defacing the website.

To fix the Craft CMS XSS vulnerability, it is recommended to upgrade to version 3.1.33 or later. This version includes a fix for the vulnerability and ensures proper input sanitization and validation.

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by securing or disabling the '/admin/settings/sites/new' endpoint. This can help mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for craftcms/cms.

How To Fix

Minimum fixed version

3.1.33

This is the first release that contains the fix.

composer require craftcms/cms:3.1.33

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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