CVE-2020-28847: Cross Site Scripting in valine

valine Updated 02 Oct 2025

Summary

06/04/2022
Yes i
Moderate
5.4

CVE-2020-28847: Cross site scripting in valine. Affects valine versions < 1.4.15. Fixed in 1.4.15. 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

Valine is a fast, simple, and powerful comment system used in web applications. It provides a platform for users to leave comments and engage in discussions. The vulnerability identified as CVE-2020-28847 is a Cross Site Scripting (XSS) vulnerability in xCss Valine version 1.4.14. This vulnerability allows an attacker to inject malicious scripts into the application, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The XSS vulnerability in Valine version 1.4.14 is caused by improper input sanitization in the 'nick' parameter of the '/classes/Comment' endpoint. An attacker can exploit this vulnerability by injecting malicious scripts or HTML code into the 'nick' parameter, which will be executed when the comment is rendered on the website. This can lead to the execution of arbitrary code, session hijacking, or the theft of sensitive information. The vulnerability was addressed in version 1.4.15 of Valine.

How To Fix

Minimum fixed version

1.4.15

This is the first release that contains the fix.

npm install valine@1.4.15

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

Conclusion

The Cross Site Scripting (XSS) vulnerability in Valine version 1.4.14 can be exploited by attackers to execute arbitrary code and potentially compromise the security of the application. It is crucial to upgrade to version 1.4.15 of Valine to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for valine →

Share this vulnerability

FAQ

Valine is a comment system used in web applications to enable user engagement and discussions.

Cross Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The vulnerability allows attackers to execute arbitrary code, potentially leading to unauthorized access, data theft, or other malicious activities.

Upgrade to version 1.4.15 of Valine, which includes proper input sanitization to prevent XSS attacks.

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for valine.

How To Fix

Minimum fixed version

1.4.15

This is the first release that contains the fix.

npm install valine@1.4.15

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