CVE-2022-39230: Fhir works on aws authz smart Fhir-works-on-aws-authz-smart Handles Permissions Improperly Vulnerability

MODERATE
Advisory Identifier: GHSA-vv7x-7w4m-q72f
CVSS 6.5
CWE-200 CWE-281
Published
Advisory Summary

CVE-2022-39230 is a MODERATE (CVSS 6.5) fhir-works-on-aws-authz-smart handles permissions improperly vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Fhir works on aws authz smart libraries in the npm ecosystem. The issue involves fhir-works-on-aws-authz-smart handles permissions improperly. Remediation is available by upgrading affected packages to version 3.1.3.

CVE-2022-39230 at a Glance

CVE Identifier CVE-2022-39230
GHSA Identifier GHSA-vv7x-7w4m-q72f
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Fhir works on aws authz smart
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

Attack Vector Network (AV:N)
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-2022-39230

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

fhir-works-on-aws-authz-smart fixed: 3.1.3
npm install fhir-works-on-aws-authz-smart@3.1.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 fhir-works-on-aws-authz-smart

How to Check if You Are Affected

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

npm ls fhir-works-on-aws-authz-smart

Analyze the terminal output to locate any version of Fhir works on aws authz smart in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.3), your application is affected.

Note: The npm ls fhir-works-on-aws-authz-smart 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Fhir works on aws authz smart, 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 This issue allows a client of the API to retrieve more information than the client’s OAuth scope permits when making “search-type” requests. This issue would not allow a client to retrieve information about individuals other than those the client was already authorized to access. ### Patches We recommend that users of fhir-works-on-aws-authz-smart 3.1.1 or 3.1.2 upgrade to version 3.1.3 or higher immediately. Versions 3.1.0 and below are unaffected. ### Workarounds There is no workaround for this issue. Please upgrade fhir-works-on-aws-authz-smart to version 3.1.3 or higher. ### References https://github.com/awslabs/fhir-works-on-aws-deployment https://github.com/awslabs/fhir-works-on-aws-authz-smart ### For more information If you have any questions or comments about this advisory: Email us at [fhir-works-on-aws-dev@amazon.com](mailto:fhir-works-on-aws-dev@amazon.com)

CVE-2022-39230 Affected Fhir works on aws authz smart Versions

1 component(s)
Fixed Versions:
3.1.3
Product / Package Ecosystem Affected Versions Fixed Version
fhir-works-on-aws-authz-smart
npm
≥ 3.1.1
< 3.1.3
3.1.3

References

Frequently Asked Questions

What is CVE-2022-39230?
CVE-2022-39230 is a security vulnerability in Fhir works on aws authz smart involving fhir-works-on-aws-authz-smart handles permissions improperly under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Fhir works on aws authz smart versions are affected?
Affected versions include releases prior to 3.1.3 across affected packages: fhir-works-on-aws-authz-smart.
What version fixes CVE-2022-39230?
Upgrading to 3.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fhir-works-on-aws-authz-smart affected?
Yes, fhir-works-on-aws-authz-smart is affected in releases prior to 3.1.3. Upgrade your dependency to 3.1.3 or later.
What is the CVSS score of CVE-2022-39230?
CVE-2022-39230 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-39230?
CVE-2022-39230 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2022-39230?
Run the dependency tree command: 'npm ls fhir-works-on-aws-authz-smart'. 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-vv7x-7w4m-q72f",
  "modified" : "2022-09-27T06:12:12Z",
  "published" : "2022-09-21T20:36:50Z",
  "aliases" : [ "CVE-2022-39230" ],
  "summary" : "fhir-works-on-aws-authz-smart handles permissions improperly",
  "details" : "### Impact\n\nThis issue allows a client of the API to retrieve more information than the client’s OAuth scope permits when making “search-type” requests. This issue would not allow a client to retrieve information about individuals other than those the client was already authorized to access.\n\n### Patches\n\nWe recommend that users of fhir-works-on-aws-authz-smart 3.1.1 or 3.1.2 upgrade to version 3.1.3 or higher immediately. Versions 3.1.0 and below are unaffected.\n\n### Workarounds\n\nThere is no workaround for this issue. Please upgrade fhir-works-on-aws-authz-smart to version 3.1.3 or higher.\n\n### References\n\nhttps://github.com/awslabs/fhir-works-on-aws-deployment\nhttps://github.com/awslabs/fhir-works-on-aws-authz-smart\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\nEmail us at [fhir-works-on-aws-dev@amazon.com](mailto:fhir-works-on-aws-dev@amazon.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "fhir-works-on-aws-authz-smart"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.1"
      }, {
        "fixed" : "3.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/fhir-works-on-aws-authz-smart/security/advisories/GHSA-vv7x-7w4m-q72f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39230"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/fhir-works-on-aws-authz-smart/commit/203bbc0dd17de748c36b33c68b866ed2dfd613d3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/awslabs/fhir-works-on-aws-authz-smart"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-281" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-21T20:36:50Z",
    "nvd_published_at" : "2022-09-23T07:15:00Z"
  }
}