Incorrect Permission Assignment for Critical Resource Affecting nano package, versions [2.9.1,9.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-NANO-16304794
  • published27 Apr 2026
  • disclosed13 Apr 2026
  • creditMichał Majchrowicz, Marcin Wyczechowski

Introduced: 13 Apr 2026

CVE-2026-6842  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade nano to version 9.1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource insecure permissions are set on the ~/.local directory in permissive umask environments. An attacker can inject a malicious .desktop launcher by exploiting world-writable directory permissions.

Workaround

This vulnerability can be mitigated by configuring the system's umask to a secure value, such as 0022 or 0077, to prevent the creation of world-writable directories.

CVSS Base Scores

version 4.0
version 3.1