CVE-2025-24027: Prestashop/ps contactinfo Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-35pq-7pv2-2rfw
CVSS 6.2
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-24027
GHSA Identifier GHSA-35pq-7pv2-2rfw
Severity MODERATE
CVSS v3.1 Base Score 6.2
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Prestashop/ps contactinfo
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability High (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.

prestashop/ps_contactinfo fixed: 3.3.3
Upgrade prestashop/ps_contactinfo to 3.3.3
Verify Direct and Transitive Dependencies

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

### Impact This can not be exploited in a fresh install of PrestaShop, only shops made vulnerable by third party modules are concerned. For example, if your shop has a third party module vulnerable to SQL injections, then ps_contactinfo might execute a stored XSS in FO. ### Patches The long term fix is to have all your modules maintained and updated. The fix on ps_contactinfo will keep formatted addresses from displaying an xss stored in the database. ### Workarounds none ### References none

CVE-2025-24027 Affected Prestashop/ps contactinfo Versions

1 component(s)
Fixed Versions:
3.3.3
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?
CVE-2025-24027 is a security vulnerability in Prestashop/ps contactinfo involving ps_contactinfo has a potential XSS due to usage of the nofilter tag in template under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Prestashop/ps contactinfo versions are affected?
Affected versions include releases prior to 3.3.3 across affected packages: prestashop/ps_contactinfo.
What version fixes CVE-2025-24027?
Upgrading to 3.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prestashop/ps_contactinfo affected?
Yes, prestashop/ps_contactinfo is affected in releases prior to 3.3.3. Upgrade your dependency to 3.3.3 or later.
What is the CVSS score of CVE-2025-24027?
CVE-2025-24027 has a CVSS v3.1 base score of 6.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:H.
What CWE is associated with CVE-2025-24027?
CVE-2025-24027 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2025-24027?
Run the dependency tree command: 'inspect dependencies for prestashop/ps_contactinfo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}