CVE-2022-38545: Valine Code Injection Vulnerability

valine Updated 02 Oct 2025

Summary

20/09/2022
Yes i
Critical
9.6

CVE-2022-38545: Valine code injection vulnerability. Affects valine versions < 1.5.0. Fixed in 1.5.0. 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 an npm package that provides a commenting system for websites. It allows users to leave comments on articles or posts. Valine is widely used in various web applications and provides an easy-to-use interface for managing comments. However, a code injection vulnerability has been discovered in Valine, which can be exploited by attackers to execute arbitrary code via a crafted POST request.

Vulnerability Detail

The Valine code injection vulnerability allows attackers to execute arbitrary code by sending a specially crafted POST request. This vulnerability can be exploited by an attacker to gain unauthorized access to the target system, execute malicious code, and potentially take control of the affected application. The vulnerability is considered critical with a CVSS score of 9.6. It falls under the CWE categories of CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) and CWE-79 (Improper Neutralization of Input During Web Page Generation).

How To Fix

Latest published version: 1.5.3 as of 23 Oct 2026

npm install valine@1.5.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.0

This is the first release that contains the fix.

npm install valine@1.5.0

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

Conclusion

The Valine code injection vulnerability is a critical security issue that allows attackers to execute arbitrary code. To mitigate the risk, it is crucial to update the Valine package to version 1.5.0 or later. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for valine →

Share this vulnerability

FAQ

Valine is an npm package that provides a commenting system for websites. It allows users to leave comments on articles or posts.

The Valine code injection vulnerability allows attackers to execute arbitrary code, potentially leading to unauthorized access, data breaches, and remote code execution.

To fix the vulnerability, update the Valine package to version 1.5.0 or later by running 'npm install valine@latest' in the terminal.

Currently, there is no known workaround for the vulnerability. It is recommended to update the package to the latest version as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for valine.

How To Fix

Latest published version: 1.5.3 as of 23 Oct 2026

npm install valine@1.5.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.0

This is the first release that contains the fix.

npm install valine@1.5.0

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