CVE-2019-15486: django-js-reverse XSS Vulnerability

django-js-reverse Updated 02 Oct 2025

Summary

23/08/2019
Yes i
Moderate
6.1

CVE-2019-15486: django-js-reverse (aka Django JS Reverse) before 0.9.1 has XSS via js_reverse_inline. Affects django-js-reverse versions < 0.9.1. Fixed in 0.9.1. 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

django-js-reverse is a Python package available on PyPI that provides a JavaScript reverse URL resolver for Django. It allows developers to generate URLs dynamically in JavaScript using the same routing configuration as Django. This package is widely used in Django projects to simplify the process of generating URLs in JavaScript. However, versions prior to 0.9.1 are vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability (CVE-2019-15486) in django-js-reverse allows an attacker to inject malicious JavaScript code into the generated URLs. This can lead to the execution of arbitrary code in the context of the victim's browser, potentially compromising user data or performing unauthorized actions. The vulnerability originates from improper input sanitization in the package, allowing the injection of malicious code. It is important to note that this vulnerability can only be exploited if the generated URLs are rendered in an unsafe manner, such as directly embedding them in HTML without proper escaping or validation.

How To Fix

Minimum fixed version

0.9.1

This is the first release that contains the fix.

pip install --upgrade "django-js-reverse==0.9.1"

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 is to manually sanitize and escape the generated URLs before rendering them in HTML. This can be done using appropriate HTML encoding functions or libraries in the programming language being used. It is crucial to ensure that all user-generated or dynamic data included in the URLs is properly sanitized to prevent XSS attacks.

Conclusion

The django-js-reverse package prior to version 0.9.1 is vulnerable to a cross-site scripting (XSS) attack. It is crucial for developers using this package to upgrade to the latest version or apply the recommended workaround to mitigate the risk of exploitation. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for django-js-reverse →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary JavaScript code in the victim's browser, potentially leading to unauthorized actions, data theft, or further exploitation of the user's system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any known vulnerabilities, including this one.

There have been no publicly reported instances of this vulnerability being actively exploited. However, it is important to promptly address and fix the vulnerability to prevent any potential exploitation.

Yes, this vulnerability has been assigned the CVE identifier CVE-2019-15486.

Yes, the vulnerability can be fixed by upgrading django-js-reverse to version 0.9.1 or later, which includes the necessary security patches.

Related vulnerabilities

Recent vulnerabilities recorded for django-js-reverse.

How To Fix

Minimum fixed version

0.9.1

This is the first release that contains the fix.

pip install --upgrade "django-js-reverse==0.9.1"

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