CVE-2016-4807: Web2py Reflected XSS Vulnerability

web2py Updated 07 Jul 2026

Summary

06/07/2026
No i
Moderate
4.8

CVE-2016-4807: Web2py Reflected XSS vulnerability. Affects web2py versions < 2.14.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Web2py is a popular open-source web application framework written in Python, designed to facilitate rapid development of web applications. It provides a robust set of features including a web-based interface, a built-in ticketing system, and support for multiple databases. However, versions 2.14.5 and below are vulnerable to a reflected cross-site scripting (XSS) attack, which can compromise the security of logged-in users, particularly administrators.

Vulnerability Detail

The vulnerability arises from inadequate input validation in Web2py, allowing attackers to inject malicious scripts into web pages viewed by users. When an admin user clicks on a crafted link, the injected script executes in their browser, potentially leading to unauthorized actions or data exposure. This vulnerability is classified as a reflected XSS, meaning the attack is executed immediately upon visiting the malicious link, making it particularly dangerous for users with elevated privileges.

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

As a temporary workaround, it is advisable to implement strict input validation and sanitization on user inputs to mitigate the risk of XSS attacks. Additionally, avoid clicking on untrusted links while logged in as an admin.

Conclusion

The reflected XSS vulnerability in Web2py versions 2.14.5 and below poses a significant risk to logged-in users, especially administrators. It is crucial to update to a patched version to mitigate this risk and ensure the security of your web applications.

See every vulnerability recorded for web2py →

Share this vulnerability

FAQ

A reflected XSS vulnerability allows an attacker to inject malicious scripts into a web page, which are then executed in the browser of a user who clicks on a crafted link.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring any signup.

If exploited, this vulnerability can lead to unauthorized access, data theft, or manipulation of user sessions, particularly affecting users with administrative privileges.

Yes, updating to a version of Web2py higher than 2.14.5 will patch this vulnerability.

The CVSS score for this vulnerability is 4.8, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for web2py.

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