TeamPass Cross-site Scripting (XSS) vulnerability in nilsteampassnet/teampass

nilsteampassnet/teampass Updated 02 Oct 2025

Summary

24/05/2022
No i
Moderate
5.4

CVE-2019-16904: TeamPass Cross-site Scripting (XSS) vulnerability. Affects nilsteampassnet/teampass versions < 2.1.27.36. 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

TeamPass is a password management solution that allows users to securely store and share passwords within a team or organization. The nilsteampassnet/teampass package is a specific implementation of TeamPass. It provides features such as folder organization, item sharing, and change history tracking. However, this package is vulnerable to a Cross-site Scripting (XSS) attack.

Vulnerability Detail

The vulnerability in TeamPass 2.1.27.36 arises from the ability to set a crafted password for an item in a folder and share it with an admin. This crafted password can be exploited when viewing the change history or the previously used password field. An attacker can inject malicious scripts into the password field, which will be executed when viewed by an admin. This XSS vulnerability can lead to various security risks, including unauthorized access, data theft, and the potential for further exploitation.

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, users can avoid sharing items with admins or restrict access to the change history and previous password fields. Additionally, implementing input validation and output encoding can help mitigate the risk of XSS attacks. Here is an example of input validation using PHP:

$input = $_POST['password'];
$cleanInput = htmlspecialchars($input, ENT_QUOTES, 'UTF-8');

This code snippet sanitizes the user input by converting special characters to their HTML entities, preventing the execution of malicious scripts.

Conclusion

The TeamPass nilsteampassnet/teampass package is vulnerable to a Cross-site Scripting (XSS) attack, allowing attackers to execute malicious scripts by setting a crafted password and sharing it with an admin. To fix this vulnerability, users should update to a secure version of the package once it becomes available. In the meantime, implementing input validation and output encoding can provide temporary mitigation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nilsteampassnet/teampass →

Share this vulnerability

FAQ

The impact of this vulnerability can range from unauthorized access to sensitive information to potential data theft. Attackers can exploit the XSS vulnerability to execute malicious scripts, compromising the security of the TeamPass installation and potentially affecting the entire organization.

You can use the Vulert Playground at Vulert Scanner to check if your nilsteampassnet/teampass installation is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, providing valuable insights without requiring access to the code or installation.

At the time of this report, there are no known public exploits specifically targeting this vulnerability in TeamPass 2.1.27.36. However, it is crucial to address the vulnerability promptly to prevent any potential exploitation.

The GitHub Security Advisory database has reviewed and confirmed this vulnerability. The TeamPass development team should be aware of the issue and working on a fix. It is recommended to follow their official channels for updates and security patches.

The CVSS score of this vulnerability is 5.4, indicating a moderate severity level. It is important to address this vulnerability to mitigate the risk of potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for nilsteampassnet/teampass.

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