CVE-2015-9545: Improper Input Validation in xdLocalStorage

xdlocalstorage Updated 02 Oct 2025

Summary

09/12/2021
No i
High
7.1

CVE-2015-9545: Improper Input Validation in xdLocalStorage. Affects xdlocalstorage versions < 2.0.5. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

xdLocalStorage is an npm package that provides a cross-domain local storage solution for web applications. It allows websites to securely share data across different domains. The package includes a receiveMessage() function in xdLocalStorage.js, which is responsible for handling incoming web messages. However, versions up to 2.0.5 do not implement any validation of the origin of these messages. This vulnerability can be exploited by remote attackers who can trick a user into visiting a malicious site. By sending malicious web messages, the attacker can compromise the confidentiality and integrity of data stored in the local storage of the vulnerable site.

Vulnerability Detail

The vulnerability in xdLocalStorage allows remote attackers to manipulate the local storage of a vulnerable site by sending malicious web messages. Since the receiveMessage() function does not validate the origin of these messages, an attacker can send crafted messages from a malicious site to the vulnerable site. This can lead to unauthorized access to sensitive data stored in the local storage, as well as the modification or deletion of this data. The impact of this vulnerability is high, as it can result in the compromise of user data and the integrity of the affected site.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the package is not immediately feasible, a temporary workaround can be implemented by modifying the receiveMessage() function in xdLocalStorage.js to include origin validation. Here is an example of how this can be done:

function receiveMessage(event) {
  if (event.origin === 'https://trusted-site.com') {
    // Handle the message
  }
}

Conclusion

In conclusion, the vulnerability in xdLocalStorage allows remote attackers to compromise the confidentiality and integrity of data stored in the local storage of a vulnerable site. To mitigate this risk, it is recommended to update the xdLocalStorage package to a version that includes a fix for this issue. Alternatively, a temporary workaround can be implemented by modifying the receiveMessage() function to include origin validation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for xdlocalstorage →

Share this vulnerability

FAQ

xdLocalStorage is an npm package that enables cross-domain local storage for web applications. It allows websites to securely share data across different domains.

This vulnerability can impact users by allowing remote attackers to access and manipulate their data stored in the local storage of a vulnerable site. This can lead to unauthorized access to sensitive information and potential data breaches.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

The CVSS score for this vulnerability is 7.1, indicating a high severity level. It is crucial to address this vulnerability promptly to protect user data and ensure the integrity of affected sites.

Related vulnerabilities

Recent vulnerabilities recorded for xdlocalstorage.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback