Cross-Site Scripting Vulnerability in phpLiteAdmin: XSS via NewRows Parameter

phpliteadmin Updated 02 Oct 2025

Summary

13/03/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2021-46709: phpLiteAdmin through 1.9.8.2 allows XSS via the index.php newRows parameter (aka num or number). Affects phpliteadmin versions < 1.9.8.2-1+deb11u1. Fixed in 1.9.8.2-1+deb11u1. 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

phpLiteAdmin is a web-based SQLite database administration tool written in PHP. It provides a user-friendly interface for managing SQLite databases, allowing users to perform operations such as creating, editing, and deleting database entries. However, versions up to 1.9.8.2 are vulnerable to a Cross-Site Scripting (XSS) attack through the 'newRows' parameter in the index.php file, which can be exploited by attackers to execute malicious scripts in the context of the user's browser.

Vulnerability Detail

The vulnerability arises from improper handling of user input in the 'newRows' parameter, which allows attackers to inject arbitrary JavaScript code. When a victim accesses a specially crafted URL containing malicious input, the script executes in their browser, potentially leading to session hijacking, data theft, or other malicious actions. This XSS vulnerability is particularly concerning as it can affect any user interacting with the compromised phpLiteAdmin interface.

How To Fix

Minimum fixed version

1.9.8.2-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpliteadmin

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

Workaround

If immediate updating is not feasible, a temporary workaround is to sanitize and validate all user inputs in the application to prevent the execution of malicious scripts. This can be done by implementing input validation functions to escape special characters in the 'newRows' parameter.

Conclusion

The phpLiteAdmin package is vulnerable to a Cross-Site Scripting attack through the 'newRows' parameter, which can lead to serious security issues. Users are advised to update to the latest patched version to protect against potential exploits. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for phpliteadmin →

Share this vulnerability

FAQ

phpLiteAdmin is a web-based tool for managing SQLite databases, providing an easy-to-use interface for database operations.

The XSS vulnerability allows attackers to inject malicious scripts into web pages viewed by other users, potentially compromising their data and sessions.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, you can implement input validation and sanitization to mitigate the risk of XSS attacks until you can apply the patch.

It is recommended to regularly check for vulnerabilities in your software dependencies, ideally on a weekly basis, to ensure your applications remain secure.

Related vulnerabilities

Recent vulnerabilities recorded for phpliteadmin.

How To Fix

Minimum fixed version

1.9.8.2-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpliteadmin

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