CVE-2014-4179: Denial of Service in yar
Summary
CVE-2014-4179: Denial of Service in yar. Affects yar versions < 2.2.0. Fixed in 2.2.0. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
You can find more information about this vulnerability in the GitHub Advisory Database at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-gg6m-fhqv-hg56/GHSA-gg6m-fhqv-hg56.json