CVE-2023-2507: Clevertap cordova Cross-Site Scripting Vulnerability

CRITICAL
Advisory Identifier: GHSA-x2ph-qqwm-9cc6
CVSS 9.3
CWE-79
Published
Advisory Summary

CVE-2023-2507 is a CRITICAL (CVSS 9.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Clevertap cordova libraries in the npm ecosystem. The issue involves clevertap cordova plugin vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.7.0.

CVE-2023-2507 at a Glance

CVE Identifier CVE-2023-2507
GHSA Identifier GHSA-x2ph-qqwm-9cc6
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Clevertap cordova
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-2507

To remediate this vulnerability, upgrade all affected Clevertap cordova dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

clevertap-cordova fixed: 2.7.0
npm install clevertap-cordova@2.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls clevertap-cordova

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-2507, inspect your project dependencies using npm:

npm ls clevertap-cordova

Analyze the terminal output to locate any version of Clevertap cordova in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.0), your application is affected.

Note: The npm ls clevertap-cordova command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

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 Clevertap cordova, 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

CleverTap Cordova Plugin version 2.6.2 allows a remote attacker to execute JavaScript code in any application that is opened via a specially constructed deeplink by an attacker. This is possible because the plugin does not correctly validate the data coming from the deeplinks before using them.

CVE-2023-2507 Affected Clevertap cordova Versions

1 component(s)
Fixed Versions:
2.7.0
Product / Package Ecosystem Affected Versions Fixed Version
clevertap-cordova
npm
< 2.7.0
2.7.0

References

Frequently Asked Questions

What is CVE-2023-2507?
CVE-2023-2507 is a security vulnerability in Clevertap cordova involving CleverTap Cordova plugin vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Clevertap cordova versions are affected?
Affected versions include releases prior to 2.7.0 across affected packages: clevertap-cordova.
What version fixes CVE-2023-2507?
Upgrading to 2.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clevertap-cordova affected?
Yes, clevertap-cordova is affected in releases prior to 2.7.0. Upgrade your dependency to 2.7.0 or later.
What is the CVSS score of CVE-2023-2507?
CVE-2023-2507 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2023-2507?
CVE-2023-2507 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 npm dependencies for CVE-2023-2507?
Run the dependency tree command: 'npm ls clevertap-cordova'. 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-x2ph-qqwm-9cc6",
  "modified" : "2025-09-24T20:50:52Z",
  "published" : "2023-07-15T21:30:16Z",
  "aliases" : [ "CVE-2023-2507" ],
  "summary" : "CleverTap Cordova plugin vulnerable to Cross-site Scripting",
  "details" : "CleverTap Cordova Plugin version 2.6.2 allows a remote attacker to execute JavaScript code in any application that is opened via a specially constructed deeplink by an attacker.\n\nThis is possible because the plugin does not correctly validate the data coming from the deeplinks before using them.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "clevertap-cordova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2507"
  }, {
    "type" : "WEB",
    "url" : "https://fluidattacks.com/advisories/maiden"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CleverTap/clevertap-cordova"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CleverTap/clevertap-cordova/releases/tag/2.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-17T10:48:39Z",
    "nvd_published_at" : "2023-07-15T19:15:09Z"
  }
}