CVE-2021-4438: @kyivstarteam/react native sms user consent React Native Sms User Consent Vulnerability

MODERATE
Advisory Identifier: GHSA-r956-2553-vvhr
CVSS 5.3
CWE-926
Published
Advisory Summary

CVE-2021-4438 is a MODERATE (CVSS 5.3) react native sms user consent vulnerability (CWE-926: Improper Export of Android Application Components) affecting @kyivstarteam/react native sms user consent libraries in the npm ecosystem. The issue involves react native sms user consent intent redirection vulnerability. Remediation is available by upgrading affected packages to version 1.1.5.

CVE-2021-4438 at a Glance

CVE Identifier CVE-2021-4438
GHSA Identifier GHSA-r956-2553-vvhr
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-926: Improper Export of Android Application Components
Affected Product @kyivstarteam/react native sms user consent
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2021-4438

To remediate this vulnerability, upgrade all affected @kyivstarteam/react native sms user consent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@kyivstarteam/react-native-sms-user-consent fixed: 1.1.5
npm install @kyivstarteam/react-native-sms-user-consent@1.1.5
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 @kyivstarteam/react-native-sms-user-consent

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2021-4438, inspect your project dependencies using npm:

npm ls @kyivstarteam/react-native-sms-user-consent

Analyze the terminal output to locate any version of @kyivstarteam/react native sms user consent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.5), your application is affected.

Note: The npm ls @kyivstarteam/react-native-sms-user-consent 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-926: Improper Export of Android Application Components, where the android application exports a component for use by other applications, but does not properly restrict which applications can launch the component or access the data it contains. In @kyivstarteam/react native sms user consent, 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

A vulnerability, which was classified as critical, has been found in kyivstarteam react-native-sms-user-consent up to 1.1.4 on Android. Affected by this issue is the function `registerReceiver` of the file `android/src/main/java/ua/kyivstar/reactnativesmsuserconsent/SmsUserConsentModule.kt`. The manipulation leads to improper export of android application components. Attacking locally is a requirement. Upgrading to version 1.1.5 is able to address this issue. The name of the patch is 5423dcb0cd3e4d573b5520a71fa08aa279e4c3c7. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-259508.

CVE-2021-4438 Affected @kyivstarteam/react native sms user consent Versions

1 component(s)
Fixed Versions:
1.1.5
Product / Package Ecosystem Affected Versions Fixed Version
@kyivstarteam/react-native-sms-user-consent
npm
< 1.1.5
1.1.5

References

Frequently Asked Questions

What is CVE-2021-4438?
CVE-2021-4438 is a security vulnerability in @kyivstarteam/react native sms user consent involving React Native Sms User Consent Intent Redirection Vulnerability under CWE-926: Improper Export of Android Application Components.
Which @kyivstarteam/react native sms user consent versions are affected?
Affected versions include releases prior to 1.1.5 across affected packages: @kyivstarteam/react-native-sms-user-consent.
What version fixes CVE-2021-4438?
Upgrading to 1.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @kyivstarteam/react-native-sms-user-consent affected?
Yes, @kyivstarteam/react-native-sms-user-consent is affected in releases prior to 1.1.5. Upgrade your dependency to 1.1.5 or later.
What is the CVSS score of CVE-2021-4438?
CVE-2021-4438 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2021-4438?
CVE-2021-4438 is classified under CWE-926: Improper Export of Android Application Components (The Android application exports a component for use by other applications, but does not properly restrict which applications can launch the component or access the data it contains.).
How can I check npm dependencies for CVE-2021-4438?
Run the dependency tree command: 'npm ls @kyivstarteam/react-native-sms-user-consent'. 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-r956-2553-vvhr",
  "modified" : "2024-04-08T15:45:37Z",
  "published" : "2024-04-07T09:30:29Z",
  "aliases" : [ "CVE-2021-4438" ],
  "summary" : "React Native Sms User Consent Intent Redirection Vulnerability",
  "details" : "A vulnerability, which was classified as critical, has been found in kyivstarteam react-native-sms-user-consent up to 1.1.4 on Android. Affected by this issue is the function `registerReceiver` of the file `android/src/main/java/ua/kyivstar/reactnativesmsuserconsent/SmsUserConsentModule.kt`. The manipulation leads to improper export of android application components. Attacking locally is a requirement. Upgrading to version 1.1.5 is able to address this issue. The name of the patch is 5423dcb0cd3e4d573b5520a71fa08aa279e4c3c7. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-259508.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@kyivstarteam/react-native-sms-user-consent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4438"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kyivstarteam/react-native-sms-user-consent/pull/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kyivstarteam/react-native-sms-user-consent/commit/5423dcb0cd3e4d573b5520a71fa08aa279e4c3c7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kyivstarteam/react-native-sms-user-consent"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kyivstarteam/react-native-sms-user-consent/releases/tag/1.1.5"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.259508"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.259508"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-926" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-08T15:45:37Z",
    "nvd_published_at" : "2024-04-07T09:15:07Z"
  }
}