VYPR
Moderate severityNVD Advisory· Published Dec 21, 2021· Updated Aug 6, 2024

CVE-2012-20001

CVE-2012-20001

Description

PrestaShop before 1.5.2 allows XSS via the "<object data='data:text/html" substring in the message field.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
prestashop/prestashopPackagist
< 1.5.2.01.5.2.0

Affected products

2

Patches

Vulnerability mechanics

Root cause

"The `isCleanHtml()` function fails to neutralize `"

Attack vector

An attacker submits a message through the Contact Form containing an `

Affected code

The vulnerability exists in the `isCleanHtml()` function, which is used in many places in PrestaShop, particularly in the Contact Form [ref_id=1]. The function fails to properly sanitize `

What the fix does

The advisory states the issue was resolved in PrestaShop version 1.5.2 [ref_id=1]. The recommended remediation is to either strip all HTML from the message field (since HTML has no legitimate purpose in a contact form) or to improve the `isCleanHtml()` sanitization function to properly filter out `

Preconditions

  • inputThe attacker must have access to the PrestaShop Contact Form (or another form using isCleanHtml())
  • configThe admin must view the submitted message in the admin area (or the victim must view the message in a webmail client)

Reproduction

1. Navigate to the PrestaShop Contact Form. 2. In the message field, enter: `

Generated on May 27, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.