---
title: "GHSA-8r6j-v8pm-fqw3: Code injection in fsevents"
description: "Critical severity. Code injection in fsevents. Affects fsevents; fixed in 1.2.11."
url: https://inlinr.com/advisories/GHSA-8r6j-v8pm-fqw3
lang: en
---

[Packages](https://inlinr.com/packages) / [fsevents](https://inlinr.com/packages/fsevents) / [Security](https://inlinr.com/packages/fsevents/security)

Critical Vulnerability GHSA-8r6j-v8pm-fqw3 CVE-2023-45311 Published 6 Oct 2023

# Code injection in fsevents

Your version 

Affected releases · [fsevents](https://inlinr.com/packages/fsevents)

- 1.x 1.0.0 – 1.2.10 Fixed in 1.2.11
- 0.3.x and older 0.1.1 – 0.3.8 No fix, no longer updated

On 1.x, the newest line:

```
npm install fsevents@1.2.11
```

Every release on a timeline

2.x 

1. Not affected

2.0.0 – 2.3.3  
18 releases, latest

1.x 

1. Affected

1.0.0 – 1.2.10  
32 releases
2. Fixed

1.2.11 – 1.2.13  
3 releases

0.x 

1. Affected

0.1.1 – 0.3.8  
15 releases

68 stable releases of fsevents, oldest to newest, one row per major.

## What happens

fsevents before 1.2.11 depends on the [fsevents-binaries.s3-us-west-2.amazonaws.com](https://fsevents-binaries.s3-us-west-2.amazonaws.com/ "https://fsevents-binaries.s3-us-west-2.amazonaws.com/") URL, which might allow an adversary to execute arbitrary code if any JavaScript project (that depends on fsevents) distributes code that was obtained from that URL at a time when it was controlled by an adversary.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:H/​I:H/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-45311 "https://nvd.nist.gov/vuln/detail/CVE-2023-45311")  
nvd.nist.gov/vuln/detail/CVE-2023-45311
- [Fix commit](https://github.com/fsevents/fsevents/commit/909af26846834642c81d19f4148afa3b7557b058 "https://github.com/fsevents/fsevents/commit/909af26846834642c81d19f4148afa3b7557b058")  
909af26
- [Reference](https://github.com/atlassian/moo/blob/56ccbdd41b493332bc2cd7a4097a5802594cdb9c/package-lock.json#L1901-L1902 "https://github.com/atlassian/moo/blob/56ccbdd41b493332bc2cd7a4097a5802594cdb9c/package-lock.json#L1901-L1902")  
github.com/atlassian/moo/blob/56ccbdd41b493332b…
- [Reference](https://github.com/atlassian/react-immutable-proptypes/blob/ddb9fa5194b931bf7528eb4f2c0a8c3434f70edd/package-lock.json#L153 "https://github.com/atlassian/react-immutable-proptypes/blob/ddb9fa5194b931bf7528eb4f2c0a8c3434f70edd/package-lock.json#L153")  
github.com/atlassian/react-immutable-proptypes/…
- [Reference](https://github.com/cloudflare/authr/blob/3f6129d97d06e61033a7f237d84e35e678db490f/ts/package-lock.json#L1512 "https://github.com/cloudflare/authr/blob/3f6129d97d06e61033a7f237d84e35e678db490f/ts/package-lock.json#L1512")  
github.com/cloudflare/authr/blob/3f6129d97d06e6…
- [Reference](https://github.com/cloudflare/hugo-cloudflare-docs/blob/e0f7cfa195af8ef1bfa51a487be7d34ba298ed06/package-lock.json#L494 "https://github.com/cloudflare/hugo-cloudflare-docs/blob/e0f7cfa195af8ef1bfa51a487be7d34ba298ed06/package-lock.json#L494")  
github.com/cloudflare/hugo-cloudflare-docs/blob…
- [Reference](https://github.com/cloudflare/redux-grim/blob/b652f99f95fb16812336073951adc5c5a93e2c23/package-lock.json#L266-L267 "https://github.com/cloudflare/redux-grim/blob/b652f99f95fb16812336073951adc5c5a93e2c23/package-lock.json#L266-L267")  
github.com/cloudflare/redux-grim/blob/b652f99f9…
- [Reference](https://github.com/cloudflare/serverless-cloudflare-workers/blob/e95e1e9c9770ed9a3d9480c1fa73e64391268354/package-lock.json#L737 "https://github.com/cloudflare/serverless-cloudflare-workers/blob/e95e1e9c9770ed9a3d9480c1fa73e64391268354/package-lock.json#L737")  
github.com/cloudflare/serverless-cloudflare-wor…
- [Package](https://github.com/fsevents/fsevents "https://github.com/fsevents/fsevents")  
github.com/fsevents/fsevents
- [Reference](https://github.com/fsevents/fsevents/compare/v1.2.10...v1.2.11 "https://github.com/fsevents/fsevents/compare/v1.2.10...v1.2.11")  
v1.2.10...v1.2.11
- [Reference](https://security.snyk.io/vuln/SNYK-JS-FSEVENTS-5487987 "https://security.snyk.io/vuln/SNYK-JS-FSEVENTS-5487987")  
security.snyk.io/vuln/SNYK-JS-FSEVENTS-5487987

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
