CVE-2014-4179: Denial of Service in yar

yar Updated 02 Oct 2025

Summary

01/09/2020
Yes i
High
7.5

CVE-2014-4179: Denial of Service in yar. Affects yar versions < 2.2.0. Fixed in 2.2.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 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 'yar' package is an npm package used for creating and managing encrypted session cookies. It provides functionality for encrypting and decrypting session data, as well as validating session cookies. The package is widely used in web applications to ensure secure session management. However, versions prior to 2.2.0 are vulnerable to a denial of service attack.

Vulnerability Detail

The vulnerability in 'yar' is related to an invalid encrypted session cookie value. When an invalid encrypted session cookie value is provided, the process crashes, resulting in a denial of service. This vulnerability can be exploited by an attacker to disrupt the availability of the affected application. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

2.2.0

This is the first release that contains the fix.

npm install yar@2.2.0

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

Conclusion

The 'yar' package prior to version 2.2.0 is vulnerable to a denial of service attack due to an invalid encrypted session cookie value. To mitigate this vulnerability, it is crucial to update the package to version 2.2.0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for yar →

Share this vulnerability

FAQ

The vulnerability can be exploited by an attacker to crash the process, resulting in a denial of service. This can lead to service disruption and unavailability of the affected application.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and the tool will provide real-time alerts for open-source vulnerabilities.

Currently, there is no known workaround for this vulnerability. It is recommended to update the 'yar' package to the fixed version.

There are no known public exploits for this vulnerability at the moment. However, it is important to update the package to prevent potential attacks.

How To Fix

Minimum fixed version

2.2.0

This is the first release that contains the fix.

npm install yar@2.2.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