Hardcoded Initialization Vector in parsel

parsel Updated 02 Oct 2025

Summary

04/09/2020
HIGH
No i
High
Not published

GHSA-q643-w9jp-q2qg: Hardcoded Initialization Vector in parsel. Affects parsel versions >= 0.0.0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The parsel package is an npm package used for parsing and manipulating HTML and XML documents. It provides a convenient API for extracting data from web pages. However, all versions of parsel have a default hardcoded initialization vector (IV) which poses a security vulnerability. When the IV is not provided, the package defaults to the hardcoded IV, making the cipher susceptible to chosen plaintext attacks.

Vulnerability Detail

The vulnerability in parsel arises from the use of a hardcoded initialization vector. This means that if an attacker can control the plaintext input to the cipher, they can observe the resulting ciphertext and potentially deduce the key used for encryption. This can lead to unauthorized access to sensitive information or the ability to modify encrypted data. The package is deprecated and will not receive updates, making it crucial to find an alternative package to mitigate this vulnerability.

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 →

Conclusion

The parsel package has a hardcoded initialization vector vulnerability that renders the cipher susceptible to chosen plaintext attacks. It is recommended to stop using this package and find an alternative that does not have this security issue. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for parsel →

Share this vulnerability

FAQ

The vulnerability allows an attacker to potentially deduce the encryption key used by the cipher, leading to unauthorized access to sensitive information or the ability to modify encrypted data.

The parsel package is deprecated and will not receive updates. The recommended fix is to find an alternative package that does not have this security issue.

There are no known workarounds for this vulnerability. It is recommended to find an alternative package.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the playground will analyze it for vulnerabilities.

You can search for alternative HTML and XML parsing packages on the npm registry or consult with the npm community for recommendations.

Related vulnerabilities

Recent vulnerabilities recorded for parsel.

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