CVE-2021-4438: @kyivstarteam/react native sms user consent React Native Sms User Consent Vulnerability
MODERATECVE-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
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).
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.
npm install @kyivstarteam/react-native-sms-user-consent@1.1.5
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
CVE-2021-4438 Affected @kyivstarteam/react native sms user consent Versions
1 component(s)| 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?
Which @kyivstarteam/react native sms user consent versions are affected?
What version fixes CVE-2021-4438?
Is @kyivstarteam/react-native-sms-user-consent affected?
What is the CVSS score of CVE-2021-4438?
What CWE is associated with CVE-2021-4438?
How can I check npm dependencies for CVE-2021-4438?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}