Vulnerabilities in pkg:npm/botframework-connector

PACKAGE
Advisory Identifier: GHSA-fvcj-hvfw-7f2v
Advisory Summary

CVE-2021-1725 is a MODERATE (CVSS 5.5) botframework-connector vulnerable to improper authentication vulnerability (CWE-287: Improper Authentication) affecting Botframework connector libraries in the npm ecosystem. The issue involves botframework-connector vulnerable to improper authentication. Remediation is available by upgrading affected packages to version 4.7.3, 4.8.1, 4.9.4, 4.10.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/botframework-connector

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/botframework-connector. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fvcj-hvfw-7f2v CVE-2021-1725 MODERATE botframework-connector vulnerable to Improper Authentication

CVE-2021-1725 at a Glance

CVE Identifier CVE-2021-1725
GHSA Identifier GHSA-fvcj-hvfw-7f2v
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-287: Improper Authentication
Affected Product Botframework connector
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.5

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:H/I:N/A:N).

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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2021-1725

To remediate this vulnerability, upgrade all affected Botframework connector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

botframework-connector fixed: 4.7.3
npm install botframework-connector@4.7.3
botframework-connector fixed: 4.8.1
npm install botframework-connector@4.8.1
botframework-connector fixed: 4.9.4
npm install botframework-connector@4.9.4
botframework-connector fixed: 4.10.3
npm install botframework-connector@4.10.3
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 botframework-connector

How to Check if You Are Affected

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

npm ls botframework-connector

Analyze the terminal output to locate any version of Botframework connector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.3), your application is affected.

Note: The npm ls botframework-connector 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Botframework connector, 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

### Impact A maliciously crafted claim may be incorrectly authenticated by the bot. Impacts bots that are not configured to be used as a Skill. This vulnerability requires an attacker to have internal knowledge of the bot. ### Patches The problem has been patched in all affected versions. Please see the list of patched versions for the most appropriate one for your individual case. ### Workarounds Users who do not wish or are not able to upgrade can add an authentication configuration containing ClaimsValidator, which throws an exception if the Claims are Skill Claims. For detailed instructions, see the link in the References section. ### For more information If you have any questions or comments about this advisory: * Open an issue in [Microsoft Bot Builder SDK](https://github.com/microsoft/botbuilder-dotnet) * Email us at [bf-reports@microsoft.com](mailto:bf-reports@microsoft.com)

CVE-2021-1725 Affected Botframework connector Versions

4 component(s)
Fixed Versions:
4.7.34.8.14.9.44.10.3
Product / Package Ecosystem Affected Versions Fixed Version
botframework-connector
npm
≥ 4.7.0
< 4.7.3
4.7.3
botframework-connector
npm
≥ 4.8.0
< 4.8.1
All 1 versions
4.8.0
4.8.1
botframework-connector
npm
≥ 4.9.0
< 4.9.4
4.9.4
botframework-connector
npm
≥ 4.10.0
< 4.10.3
4.10.3

References

Frequently Asked Questions

What is CVE-2021-1725?
CVE-2021-1725 is a security vulnerability in Botframework connector involving botframework-connector vulnerable to Improper Authentication under CWE-287: Improper Authentication.
Which Botframework connector versions are affected?
Affected versions include releases prior to 4.7.3, 4.8.1, 4.9.4, 4.10.3 across affected packages: botframework-connector.
What version fixes CVE-2021-1725?
Upgrading to 4.7.3, 4.8.1, 4.9.4, 4.10.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is botframework-connector affected?
Yes, botframework-connector is affected in releases prior to 4.7.3, 4.8.1, 4.9.4, 4.10.3. Upgrade your dependency to 4.7.3, 4.8.1, 4.9.4, 4.10.3 or later.
What is the CVSS score of CVE-2021-1725?
CVE-2021-1725 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-1725?
CVE-2021-1725 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2021-1725?
Run the dependency tree command: 'npm ls botframework-connector'. 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-fvcj-hvfw-7f2v",
  "modified" : "2024-01-02T15:05:56Z",
  "published" : "2021-03-08T15:49:53Z",
  "aliases" : [ "CVE-2021-1725" ],
  "summary" : "botframework-connector vulnerable to Improper Authentication",
  "details" : "### Impact\nA maliciously crafted claim may be incorrectly authenticated by the bot. Impacts bots that are not configured to be used as a Skill. This vulnerability requires an attacker to have internal knowledge of the bot.\n\n### Patches\nThe problem has been patched in all affected versions. Please see the list of patched versions for the most appropriate one for your individual case.\n\n### Workarounds\nUsers who do not wish or are not able to upgrade can add an authentication configuration containing ClaimsValidator, which throws an exception if the Claims are Skill Claims.\n\nFor detailed instructions, see the link in the References section.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Microsoft Bot Builder SDK](https://github.com/microsoft/botbuilder-dotnet)\n* Email us at [bf-reports@microsoft.com](mailto:bf-reports@microsoft.com)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "botframework-connector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.7.0"
      }, {
        "fixed" : "4.7.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "botframework-connector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.8.0"
      }, {
        "fixed" : "4.8.1"
      } ]
    } ],
    "versions" : [ "4.8.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "botframework-connector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.9.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "botframework-connector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.10.0"
      }, {
        "fixed" : "4.10.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/botbuilder-js/security/advisories/GHSA-fvcj-hvfw-7f2v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-1725"
  }, {
    "type" : "WEB",
    "url" : "https://aka.ms/SkillClaimsValidationJavascript"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/botbuilder-js"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-1725"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/botframework-connector"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-08T15:47:09Z",
    "nvd_published_at" : "2021-01-12T20:15:00Z"
  }
}