# GHSA-8wgc-jjvv-cv6v: Improper Authorization in loopback

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-02T15:54:52.000Z
- Modified: 2021-09-27T15:44:08.000Z
- Weaknesses: CWE-285

## Description

Vulnerable versions of `loopback` may allow attackers to create Authentication Tokens on behalf of other users due to Improper Authorization. If the AccessToken model is publicly exposed, an attacker can create Authorization Tokens for any user as long as they know the target's `userId`. This will allow the attacker to access the user's data and their privileges.


## Recommendation

For loopback 2.x, upgrade to version 2.40.0 or later
For loopback 3.x, upgrade to version 3.22.0 or later

(As written by GitHub Advisory Database.)

## Affected

- loopback (npm): before 2.40.0; from 3.0.0 before 3.22.0

## References

- <https://github.com/strongloop/loopback> (package)
- <https://loopback.io/doc/en/lb2/Security-advisory-08-08-2018.html]> (web)
- <https://loopback.io/doc/en/lb3/Security-advisory-08-08-2018.html]> (web)
- <https://www.npmjs.com/advisories/771> (web)

## Sources

- GitHub Advisory Database: [GHSA-8wgc-jjvv-cv6v](https://github.com/advisories/GHSA-8wgc-jjvv-cv6v), CC-BY-4.0, modified 2021-09-27

---

Page: https://cve.day/GHSA-8wgc-jjvv-cv6v · Whole record: https://cve.day/GHSA-8wgc-jjvv-cv6v.json · Rebuilt by cve.day 2026-11-25T22:56:44.811Z
