Open source

Is open-source software safe? Myths and facts about security

Public code is neither automatically safe nor automatically risky. Here are common myths about open-source security and the checks that show if a project is trustworthy.

Cursorlane Editorial TeamSoftware & tools 5 min read
A glass-walled bakery where passers-by can watch bakers at work, with an inspector holding a clipboard inside

Is open-source software safe? Well-maintained open-source software is generally as safe as commercial software, and sometimes safer, because anyone can inspect the code and fixes are published openly. But 'open source' is not a safety label. A small, abandoned project can be risky, just as a closed product can be.

This piece looks at the common myths on both sides, explains real risks such as supply-chain attacks, and gives a practical checklist for judging whether an open-source project is trustworthy.

Myth: if the code is public, attackers can easily hack it

This is the 'security through obscurity' argument: hiding code keeps attackers out. In practice, attackers find flaws in closed software all the time, using tools that analyse compiled programs and by probing how they behave. Hiding the code slows defenders as much as attackers.

Modern security practice, including the long-standing principle stated by the cryptographer Auguste Kerckhoffs, holds that a system should stay secure even if everything about it except the key is public. That is why the encryption protecting your web traffic uses openly published algorithms that experts worldwide have tried to break.

Myth: many eyes mean every bug gets found

The opposite claim is also too simple. Open code makes review possible, but it does not guarantee that anyone actually reviews it. Serious vulnerabilities have sat unnoticed for years in widely used open-source libraries, sometimes because only one or two volunteers maintained them.

Review depends on attention and funding. Large projects with many contributors, corporate backing and dedicated security teams get far more scrutiny than a small library maintained in someone's spare time. The question to ask is not 'is it open source?' but 'who is actually looking after it?'

Organised efforts have grown up to fill the gap, including industry-funded security foundations that audit critical projects, fund maintainers and publish scorecards rating projects on security practices. These help, but they cover a small share of the vast number of open-source packages in use.

The question to ask is not 'is it open source?' but 'who is actually looking after it?'

Myth: open source is amateur software

Much of the world's critical infrastructure runs on open source: most web servers, the majority of cloud workloads, phone operating systems, and the cryptographic libraries behind HTTPS. Many major projects are maintained by full-time engineers employed by large companies, under foundations with formal security processes.

These projects often publish security policies, run bug bounty programmes, issue public advisories with CVE identifiers and release patches on a predictable schedule. That transparency is a strength: you can see exactly what was fixed and when, rather than relying on a vague 'security improvements' note.

What are the real risks with open-source software?

The risks are real, but they are specific, and knowing them helps you manage them.

Notice that most of these risks are about maintenance and distribution rather than the fact that the code is public. Closed software has its own versions of the same problems, such as abandoned products and compromised update servers; they are simply harder for outsiders to see.

  • Abandoned projects: no one fixes new vulnerabilities.
  • Supply-chain attacks: malicious code slipped into a package, often through a compromised maintainer account or a long-term social engineering effort.
  • Typosquatting: fake packages with names one letter off popular ones.
  • Fake download sites bundling malware with genuine open-source programs.
  • Deep dependency trees: one project can pull in hundreds of others you never chose.
  • Slow updates: known fixes that never reach your systems because nobody upgrades.

How do you judge whether a project is trustworthy?

A few minutes of checking before you adopt a project or library tells you a lot. Look for signs of active, responsible maintenance:

  • Recent commits and releases, and issues that receive replies.
  • More than one active maintainer, or backing from a foundation or organisation.
  • A published security policy (often a SECURITY file) explaining how to report vulnerabilities.
  • A history of security advisories that were handled and fixed promptly.
  • Signed releases or published checksums you can verify.
  • Clear documentation and a sensible number of dependencies.
  • Wide use by others, though popularity alone is not proof.

How do everyday users stay safe with open-source apps?

For people who simply use open-source programs, the rules are the same as for any software. Download only from the project's official website or your operating system's official software source, such as a Linux distribution's package manager or an official app store. Be wary of third-party download sites, which sometimes wrap genuine programs in installers that add unwanted software.

Keep the program updated, ideally automatically. Where a project publishes checksums or signatures, verifying them confirms the file you downloaded is the one the developers released. Your operating system's package manager does this for you automatically.

What should developers do about dependency risk?

If you build software, open-source dependencies are part of your product, and their security is your responsibility too. Use a lock file so builds use the exact versions you tested. Turn on automated alerts for known vulnerabilities in your dependencies, and update regularly in small steps rather than rarely in big leaps.

Before adding a new package, ask whether you really need it; a few lines of your own code can replace a tiny dependency. Double-check package names for typos. Many organisations also maintain a software bill of materials (SBOM), a list of every component in a product, so they can respond quickly when a new vulnerability is announced.

Frequently asked questions

Is open-source software more secure than closed source?

+

Neither model is automatically more secure. Well-maintained projects of either kind can be very secure. Open source allows independent review and transparent fixes, but only if people actually maintain and review it.

Can open-source software contain malware?

+

It can, usually through compromised packages, fake lookalike packages or unofficial download sites. Official sources, signed releases and active maintenance greatly reduce the risk.

Is Linux more secure than other operating systems?

+

Linux has a strong security track record and quick patching, but security depends heavily on configuration, updates and user behaviour. Any well-maintained, updated operating system can be used safely.

What is a supply-chain attack?

+

It is an attack that targets software through something it depends on, such as a library, build tool or update server, rather than attacking it directly. Malicious code then reaches everyone who uses the compromised component.

How do I verify an open-source download?

+

Many projects publish a checksum, such as a SHA-256 hash, or a cryptographic signature. Compute the hash of your download with a built-in system tool and compare it with the published value from the official site.

Should businesses use open-source software?

+

Most businesses already do, often without realising it. The key is to track which components you use, check that they are maintained, and keep them updated.

Open source is not a guarantee of safety or a warning sign. Judge each project on how it is maintained, get it from official sources, and keep it updated, just as you would any other software.

How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.

Written by

Cursorlane Editorial Team

Software & tools

Our writers are developers and heavy software users who test what they write about and update guides when the tools change.

More Stories

View all →