Vulnerabilities in pkg:npm/cordova-plugin-fingerprint-aio
PACKAGECVE-2021-43849 is a MODERATE (CVSS 6.2) denial of service vulnerability (CWE-617: Reachable Assertion) affecting Cordova plugin fingerprint aio libraries in the npm ecosystem. The issue involves cordova-plugin-fingerprint-aio dos vulnerability. Remediation is available by upgrading affected packages to version 5.0.1.
pkg:npm/cordova-plugin-fingerprint-aio
Vulnerability advisories affecting package pkg:npm/cordova-plugin-fingerprint-aio. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7vfx-hfvm-rhr8 | CVE-2021-43849 | MODERATE | cordova-plugin-fingerprint-aio DoS vulnerability |
CVE-2021-43849 at a Glance
Security Impact
CVSS: 6.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2021-43849
To remediate this vulnerability, upgrade all affected Cordova plugin fingerprint aio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install cordova-plugin-fingerprint-aio@5.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls cordova-plugin-fingerprint-aio
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-43849, inspect your project dependencies using npm:
npm ls cordova-plugin-fingerprint-aio
Analyze the terminal output to locate any version of Cordova plugin fingerprint aio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.1), your application is affected.
Note: The npm ls cordova-plugin-fingerprint-aio command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-617: Reachable Assertion, where the product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary. In Cordova plugin fingerprint aio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-43849 Affected Cordova plugin fingerprint aio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cordova-plugin-fingerprint-aio
|
npm |
< 5.0.1
|
5.0.1
|
References
Frequently Asked Questions
What is CVE-2021-43849?
Which Cordova plugin fingerprint aio versions are affected?
What version fixes CVE-2021-43849?
Is cordova-plugin-fingerprint-aio affected?
What is the CVSS score of CVE-2021-43849?
What CWE is associated with CVE-2021-43849?
How can I check npm dependencies for CVE-2021-43849?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7vfx-hfvm-rhr8",
"modified" : "2023-11-02T20:44:41Z",
"published" : "2023-11-02T20:44:41Z",
"aliases" : [ "CVE-2021-43849" ],
"summary" : "cordova-plugin-fingerprint-aio DoS vulnerability",
"details" : "## Summary:\n\nSending a specially crafted intent with an invalid/empty extras `de.niklasmerz.cordova.biometric.BiometricActivity` can cause the app to crash. sending the intent repeatedly can prevent the app using this plugin from working, resulting in a denial of service (DoS) condition.\n\n## Impact\n\nA 3rd party app/remote attacker can exploit this vulnerability by sending a malicious intent to the target device, causing the app using this plugin from working to crash or become unresponsive, resulting in a denial of service (DoS) condition.\n\n## Mitigation\n\nVersion 5.0.1 of the cordova-plugin-fingerprint-aio doesn't export the activity anymore and is no longer vulnerable.\n\nIf you want to fix older versions change the attribute `android:exported` of this code snippet in plugin.xml to `false`:\n\n```xml\n<config-file target=\"AndroidManifest.xml\" parent=\"application\">\n <activity android:name=\"de.niklasmerz.cordova.biometric.BiometricActivity\" android:theme=\"@style/TransparentTheme\" android:exported=\"false\"/>\n</config-file>\n``` \n\n## Patches\n\nPlease upgrade to version 5.0.1 as soon as possible.\n\nPlease check out the release on [GitHub](https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/releases/tag/v5.0.1).\n\n## For more information\nIf you have any questions or comments about this advisory please go to the discussion on [GitHub](https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/discussions/394).\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "cordova-plugin-fingerprint-aio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/security/advisories/GHSA-7vfx-hfvm-rhr8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-43849"
}, {
"type" : "WEB",
"url" : "https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/commit/27434a240f97f69fd930088654590c8ba43569df"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio"
}, {
"type" : "WEB",
"url" : "https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/discussions/394"
}, {
"type" : "WEB",
"url" : "https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/releases/tag/v5.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-617" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-02T20:44:41Z",
"nvd_published_at" : "2021-12-23T17:15:00Z"
}
}