Zum Hauptinhalt springen
LIVE
CVSS 5.1CVE-2026-127161 | Exposure of sensitive information in live and stateful migration operations in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project event or operation read access to read a migrating instance's checkpointed runtime state and disrupt the migration via capturing the state connection secret from operation events or queries.CVSS 5.1CVE-2026-127158 | Exposure of sensitive information and missing requestor validation in instance, volume, and snapshot migration operations in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project event or operation read access to read migrating configuration and filesystem data and disrupt the migration via capturing per-connection websocket secrets from operation metadata and racing the migration's data channels.CVSS 6.2CVE-2026-127151 | Exposure of resource to wrong sphere in VM disk migration, export, and attach NBD servers in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows an unprivileged local user in the host network namespace to read and modify a guest VM's disk and execute code inside the guest via connecting to abstract Unix sockets while an operation is active.CVSS 6.3CVE-2026-135381 | Incorrect permission assignment for critical resources in rsync transfer sockets, instance storage directories, proxy socket paths, and disk staging mounts in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an unprivileged local user to gain root privileges on the host, read or modify transferred volumes, alter host file permissions, and inject AppArmor rules via connecting to unauthenticated abstract Unix sockets, running setuid binaries, or racCVSS 7.1CVE-2026-127162 | Improper output encoding in Prometheus metrics exposition in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows a user controlling a virtual machine to forge host metric labels and break metrics scraping via unescaped guest-controlled filesystem mountpoints and network interface names.CVSS 6.2CVE-2026-136975 | Authentication bypass by spoofing in bridged NIC MAC filtering in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows a privileged user inside an instance sharing a managed bridge to intercept and deny inbound network traffic addressed to a neighbour instance via sending frames with a spoofed source MAC address before filtering drops them.CVSS 6.5CVE-2026-115844 | In LXD before 5.21.0 and 6.10.0, an OS command injection vulnerability allows an authenticated client restricted to a single project to execute arbitrary code as root on the host. The raw.dnsmasq bridge network configuration key is not restricted to server administrators and is copied verbatim into the dnsmasq configuration file, so a user whose project keeps the default features.networks=false can have a bridge network created in the default project withCVSS 6.4CVE-2026-135378 | Incorrect authorization in NIC, managed network, network zone, and ACL handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user of a restricted project or root inside an instance to manipulate host interfaces and firewall rules, read fragments of root-owned files through error messages, and disrupt or intercept other projects' networks and DNS records via unvalidated device and network configurations.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

I built a zero-dependency TypeScript env validator

Every Node.js developer has been burned by this at least once: const port = parseInt(process.env.PORT); // NaN if PORT is missing const db =…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 2 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

Every Node.js developer has been burned by this at least once:




const port = parseInt(process.env.PORT); // NaN if PORT is missing
const db = process.env.DATABASE_URL; // string | undefined — not safe!






Your app starts fine locally, then crashes in production because someone forgot to set an env var. The error shows up 3 hours later, not at startup.






The solution



I built @harmand66/typesafe-env — a tiny, zero-dependency library that validates and types your environment variables at boot time.




import { createEnv } from '@harmand66/typesafe-env';

const env = createEnv({
PORT: { type: 'number', default: 3000 },
DATABASE_URL: { type: 'string', required: true },
DEBUG: { type: 'boolean', default: false },
});

// ✅ TypeScript knows PORT is a number
env.PORT + 1 // 3001 — not "30001"
env.DATABASE_URL // string — guaranteed, never undefined






If anything is missing or wrong, your app fails immediately at startup with a clear message:

All errors at once — no more fixing them one by one.






Why not Zod?



Zod is great but it's 57kb and requires a lot of boilerplate for this specific use case. @harmand66/typesafe-env is zero dependencies and does one thing well.






Try it






npm install @harmand66/typesafe-env






GitHub: https://github.com/giannielloemmanuele-lgtm/typesafe-env

npm: https://www.npmjs.com/package/@harmand66/typesafe-env



Would love any feedback or contributions! 🙏

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

6 Cluster
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten I built a zero-dependency TypeScript env validator

Thematisch verwandte Begriffe: built, zerodependency, TypeScript, validator · 6 Treffer

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag