CVE-2021-29452: @curveball/a12n server Any Logged Vulnerability

HIGH
Advisory Identifier: GHSA-8hw9-22v6-9jr9
CVSS 8.1
CWE-269 CWE-863
Published
Advisory Summary

CVE-2021-29452 is a HIGH (CVSS 8.1) any logged vulnerability (CWE-269: Improper Privilege Management) affecting @curveball/a12n server libraries in the npm ecosystem. The issue involves any logged in user could edit any other logged in user.. Remediation is available by upgrading affected packages to version 0.18.2.

CVE-2021-29452 at a Glance

CVE Identifier CVE-2021-29452
GHSA Identifier GHSA-8hw9-22v6-9jr9
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-269: Improper Privilege Management
Affected Product @curveball/a12n server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

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

How to Fix CVE-2021-29452

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

@curveball/a12n-server fixed: 0.18.2
npm install @curveball/a12n-server@0.18.2
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 @curveball/a12n-server

How to Check if You Are Affected

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

npm ls @curveball/a12n-server

Analyze the terminal output to locate any version of @curveball/a12n server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.2), your application is affected.

Note: The npm ls @curveball/a12n-server 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In @curveball/a12n server, 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 Everyone who is running a12n-server. A new HAL-Form was added to allow editing users. This feature should only have been accessible to admins. Unfortunately, privileges were incorrectly checked allowing any logged in user to make this change. ### Patches Patched in v0.18.2

CVE-2021-29452 Affected @curveball/a12n server Versions

1 component(s)
Fixed Versions:
0.18.2
Product / Package Ecosystem Affected Versions Fixed Version
@curveball/a12n-server
npm
≥ 0.18.0
< 0.18.2
0.18.2

References

Frequently Asked Questions

What is CVE-2021-29452?
CVE-2021-29452 is a security vulnerability in @curveball/a12n server involving Any logged in user could edit any other logged in user. under CWE-269: Improper Privilege Management.
Which @curveball/a12n server versions are affected?
Affected versions include releases prior to 0.18.2 across affected packages: @curveball/a12n-server.
What version fixes CVE-2021-29452?
Upgrading to 0.18.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @curveball/a12n-server affected?
Yes, @curveball/a12n-server is affected in releases prior to 0.18.2. Upgrade your dependency to 0.18.2 or later.
What is the CVSS score of CVE-2021-29452?
CVE-2021-29452 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-29452?
CVE-2021-29452 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check npm dependencies for CVE-2021-29452?
Run the dependency tree command: 'npm ls @curveball/a12n-server'. 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-8hw9-22v6-9jr9",
  "modified" : "2021-04-16T23:04:15Z",
  "published" : "2021-04-19T15:14:33Z",
  "aliases" : [ "CVE-2021-29452" ],
  "summary" : "Any logged in user could edit any other logged in user.",
  "details" : "### Impact\nEveryone who is running a12n-server. \n\nA new HAL-Form was added to allow editing users. This feature should only have been accessible to admins. Unfortunately, privileges were incorrectly checked allowing any logged in user to make this change.\n\n### Patches\nPatched in v0.18.2",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@curveball/a12n-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0"
      }, {
        "fixed" : "0.18.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/curveball/a12n-server/security/advisories/GHSA-8hw9-22v6-9jr9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29452"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/@curveball/a12n-server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-16T23:04:15Z",
    "nvd_published_at" : "2021-04-16T22:15:00Z"
  }
}