Vulnerabilities in pkg:npm/cordova-plugin-fingerprint-aio

PACKAGE
Advisory Identifier: GHSA-7vfx-hfvm-rhr8
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/cordova-plugin-fingerprint-aio

1 Known Advisory Record(s)

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

CVE Identifier CVE-2021-43849
GHSA Identifier GHSA-7vfx-hfvm-rhr8
Severity MODERATE
CVSS v3.1 Base Score 6.2
CWE Classification CWE-617: Reachable Assertion
Affected Product Cordova plugin fingerprint aio
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

cordova-plugin-fingerprint-aio fixed: 5.0.1
npm install cordova-plugin-fingerprint-aio@5.0.1
Verify Direct and Transitive Dependencies

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

## Summary: Sending 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. ## Impact A 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. ## Mitigation Version 5.0.1 of the cordova-plugin-fingerprint-aio doesn't export the activity anymore and is no longer vulnerable. If you want to fix older versions change the attribute `android:exported` of this code snippet in plugin.xml to `false`: ```xml <config-file target="AndroidManifest.xml" parent="application"> <activity android:name="de.niklasmerz.cordova.biometric.BiometricActivity" android:theme="@style/TransparentTheme" android:exported="false"/> </config-file> ``` ## Patches Please upgrade to version 5.0.1 as soon as possible. Please check out the release on [GitHub](https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/releases/tag/v5.0.1). ## For more information If 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).

CVE-2021-43849 Affected Cordova plugin fingerprint aio Versions

1 component(s)
Fixed Versions:
5.0.1
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?
CVE-2021-43849 is a security vulnerability in Cordova plugin fingerprint aio involving cordova-plugin-fingerprint-aio DoS vulnerability under CWE-617: Reachable Assertion.
Which Cordova plugin fingerprint aio versions are affected?
Affected versions include releases prior to 5.0.1 across affected packages: cordova-plugin-fingerprint-aio.
What version fixes CVE-2021-43849?
Upgrading to 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cordova-plugin-fingerprint-aio affected?
Yes, cordova-plugin-fingerprint-aio is affected in releases prior to 5.0.1. Upgrade your dependency to 5.0.1 or later.
What is the CVSS score of CVE-2021-43849?
CVE-2021-43849 has a CVSS v3.1 base score of 6.2 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2021-43849?
CVE-2021-43849 is classified under CWE-617: Reachable Assertion (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.).
How can I check npm dependencies for CVE-2021-43849?
Run the dependency tree command: 'npm ls cordova-plugin-fingerprint-aio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}