
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A simple Python package for securely loading environment variables from age encrypted file.
If you only need to decrypt files at runtime:
pip install agenv
If you need to load encrypted environment variables automatically:
pip install agenv[dotenv]
[!NOTE] age must be installed separately, as there is no native Python implementation of age.
from agenv import load_age_env
# Decrypts and loads environment variables from a .env.age file
load_age_env(".env.age")
import yaml
from agenv import decrypt
# Decrypts the .age encrypted file and loads the content as a YAML object
yaml_str = decrypt("database.yml.age")
data = yaml.safe_load(yaml_str)
print(data)
agenv determines the age identity key in the following order:
identity
parameter provided to load_age_env()
AGE_SECRET_KEY
environment variableAGE_SECRET_KEY_FILE
environment variable (path to key file)$HOME/.age/age.key
If no valid identity is found, decryption will fail.
FAQs
Load environment variables from age-encrypted files
We found that agenv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.