CVE-2025-24027: Prestashop/ps contactinfo Cross-Site Scripting Vulnerability
MODERATECVE-2025-24027 is a MODERATE (CVSS 6.2) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Prestashop/ps contactinfo libraries in the Packagist ecosystem. The issue involves ps_contactinfo has a potential xss due to usage of the nofilter tag in template. Remediation is available by upgrading affected packages to version 3.3.3.
CVE-2025-24027 at a Glance
Security Impact
CVSS: 6.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:H).
How to Fix CVE-2025-24027
To remediate this vulnerability, upgrade all affected Prestashop/ps contactinfo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade prestashop/ps_contactinfo to 3.3.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for prestashop/ps_contactinfo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-24027, inspect your project dependencies for Prestashop/ps contactinfo:
inspect dependencies for prestashop/ps_contactinfo
Analyze the terminal output to locate any version of Prestashop/ps contactinfo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Prestashop/ps contactinfo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-24027 Affected Prestashop/ps contactinfo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prestashop/ps_contactinfo
|
Packagist |
< 3.3.3
|
3.3.3
|
References
Frequently Asked Questions
What is CVE-2025-24027?
Which Prestashop/ps contactinfo versions are affected?
What version fixes CVE-2025-24027?
Is prestashop/ps_contactinfo affected?
What is the CVSS score of CVE-2025-24027?
What CWE is associated with CVE-2025-24027?
How can I check Packagist dependencies for CVE-2025-24027?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-35pq-7pv2-2rfw",
"modified" : "2025-01-22T18:10:58Z",
"published" : "2025-01-22T18:10:58Z",
"aliases" : [ "CVE-2025-24027" ],
"summary" : "ps_contactinfo has a potential XSS due to usage of the nofilter tag in template",
"details" : "### Impact\nThis can not be exploited in a fresh install of PrestaShop, only shops made vulnerable by third party modules are concerned. \n\nFor example, if your shop has a third party module vulnerable to SQL injections, then ps_contactinfo might execute a stored XSS in FO.\n\n### Patches\nThe long term fix is to have all your modules maintained and updated.\nThe fix on ps_contactinfo will keep formatted addresses from displaying an xss stored in the database.\n\n### Workarounds\nnone\n\n### References\nnone",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "prestashop/ps_contactinfo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.3.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/PrestaShop/ps_contactinfo/security/advisories/GHSA-35pq-7pv2-2rfw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24027"
}, {
"type" : "WEB",
"url" : "https://github.com/PrestaShop/ps_contactinfo/commit/d60f9a5634b4fc2d3a8831fb08fe2e1f23cbfa39"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PrestaShop/ps_contactinfo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-22T18:10:58Z",
"nvd_published_at" : "2025-01-22T15:15:27Z"
}
}