CVE-2023-2507: CleverTap Cordova plugin cross-site scripting in deeplink handler

CVE-2023-2507 · Severity: low · CVSS 3.1 · Published 2023-07-15

CleverTap's Cordova plugin enables mobile applications to interact with the CleverTap customer engagement platform. A flaw in the plugin's deeplink processing allows attackers to inject and execute arbitrary JavaScript code in affected applications when users open malicious deeplinks, potentially leading to credential theft, unauthorized actions, or malware installation.

Vendors: CleverTap, npm.

Quick answers

Is CVE-2023-2507 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-2507 being exploited in the wild.
How severe is CVE-2023-2507?
Low severity, with a CVSS score of 3.1, published 15 July 2023.
Which products and versions are affected?
CleverTap Cordova plugin 2.6.2 and earlier; fixed in 2.7.0; clevertap-cordova (npm) SEMVER:introduced=0,fixed=2.7.0.
Is there a fix for CVE-2023-2507?
Yes. clevertap-cordova (npm): upgrade to 2.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2023-2507 attacked?
It is attacked over the network.
Am I affected by CVE-2023-2507?
Check whether you run CleverTap Cordova plugin or clevertap-cordova (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • clevertap-cordova (npm): upgrade to 2.7.0 or later
    npm install clevertap-cordova@2.7.0

Technical details

The vulnerability is a reflected Cross-Site Scripting (XSS) flaw (CWE-79) in CleverTap Cordova Plugin version 2.6.2 and earlier. The plugin fails to properly validate and sanitize data extracted from deeplinks before using it in JavaScript execution contexts. An attacker can craft a specially formed deeplink that, when opened by a user in an application using the vulnerable plugin, will execute arbitrary JavaScript with the privileges of the application. No authentication is required; the attack requires only that a user click a malicious link. The vulnerability was fixed in version 2.7.0.

Affected products

  • CleverTap Cordova plugin 2.6.2 and earlier; fixed in 2.7.0

Identifiers

  • CVE-2023-2507
  • GHSA-x2ph-qqwm-9cc6

Timeline

  • 2023-07-15: disclosed
  • 2023: patched: Version 2.7.0 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.