CVE-2015-9286: Cross-site Scripting in NodeBB

nodebb Updated 02 Oct 2025

Summary

01/05/2019
Yes i
Moderate
6.1

CVE-2015-9286: Cross-site Scripting in NodeBB. Affects nodebb versions < 0.8.2. Fixed in 0.8.2. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

NodeBB is an open-source forum software written in Node.js. It provides a platform for creating online communities and discussion boards. The software allows users to create topics, post replies, and engage in discussions. NodeBB is widely used and has a large user base. However, prior to version 0.7.3, NodeBB is vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability, identified as CVE-2015-9286, exists in the 'Controllers.outgoing' function within the 'controllers/index.js' file of NodeBB. This function is responsible for handling outgoing requests. The lack of proper input sanitization allows an attacker to inject malicious scripts into the outgoing data. When a user visits a page containing the vulnerable code, the injected script is executed in the context of the user's browser, potentially leading to unauthorized actions, data theft, or further exploitation. The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.1.

How To Fix

Minimum fixed version

0.8.2

This is the first release that contains the fix.

npm install nodebb@0.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually sanitizing the outgoing data in the vulnerable function. Here is an example of how to sanitize the data using the 'xss' library in Node.js:

const xss = require('xss');

function sanitizeOutgoing(data) {
  return xss(data);
}

By applying this workaround, the risk of XSS attacks can be mitigated until a proper upgrade can be performed.

Conclusion

In conclusion, NodeBB versions prior to 0.7.3 are vulnerable to a cross-site scripting (XSS) attack. This vulnerability can be mitigated by upgrading to version 0.8.2 or later. If immediate upgrade is not possible, applying a temporary workaround by manually sanitizing the outgoing data can help reduce the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nodebb →

Share this vulnerability

FAQ

NodeBB is an open-source forum software written in Node.js. It provides a platform for creating online communities and discussion boards.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. These scripts can be used to steal sensitive information, perform unauthorized actions, or further exploit the affected system.

The vulnerability in NodeBB allows an attacker to inject malicious scripts into outgoing data. When a user visits a page containing the vulnerable code, the injected script is executed in their browser, potentially leading to unauthorized actions, data theft, or further exploitation.

The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.1. While it is not the highest severity level, it still poses a significant risk and should be addressed promptly.

To fix this vulnerability, it is recommended to upgrade NodeBB to version 0.8.2 or later. The latest version includes the necessary patches to mitigate the XSS vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for nodebb.

How To Fix

Minimum fixed version

0.8.2

This is the first release that contains the fix.

npm install nodebb@0.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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