No, there is nothing inherently insecure about python. However Python can be used to make a vulnerability. For instance it would be easy to make a web portal that executes anything that is typed in. This is true for any programming language, but python makes it extra easy. And I know, you would know better, but IT departments see all their users as idiots (often with good reason). Answer from novel_yet_trivial on reddit.com
🌐
Reddit
reddit.com › r/learnpython › potential security risks of using python at work
r/learnpython on Reddit: Potential Security Risks of using Python at Work
January 21, 2025 -

So I wanted to install Python, download Selenium library on it, and combine it with Webdriver to access web-driven accounting software to automate some stuff; mainly downloading reports from the accounting software since there are tones of reports to download every month, which the software does not have automation function for. I don't want to deal with any data.

Senior director and I went to IT for the request to download Python and they declined; they said there is a security risk.

Does anyone know what potential security risks they are referring to? I don't have cs background so I'm not very sure. And is there a way to mitigate those risks?

🌐
Reddit
reddit.com › r/python › is python a security vulnerability?
r/Python on Reddit: Is Python a Security Vulnerability?
November 20, 2017 -

I recently sent a request to my employer's IT department asking for access to Python 3.6.3. The request was denied with the justification "Python is dangerous to have on a pc. It is a useful attack vector."

Can anyone provide insight on what this might mean? Does simply having Python installed on your computer make you more susceptible to attacks? I can't tell if my employer has a valid concern here or if they are just taking the easy route.

EDIT: Spelling

🌐
Reddit
reddit.com › r/learnpython › what does a secure python installation look like?
r/learnpython on Reddit: What does a secure Python installation look like?
April 20, 2025 -

Python's great, everyone cheers on Python, every weird essential desktop application at the office relies on a Python install, every analyst who has hit the limits of Excel wants to use Python. I don't see anyone really talking about the security implications of having a modular scripting stack with a history of add-on compromise installed on every production workstation.

How do you secure a Python install, what do you allow in it, and how do you cope with the eleventy hundred Python modules users claim they need?

🌐
Reddit
reddit.com › r/learnpython › is python safe for sensitive data?
Is Python Safe For Sensitive Data? : r/learnpython
May 28, 2019 - My understanding is that Python modules are installed on the computer and unless there is existing hostile code in the functions in those modules, there is no access to the Internet unless my code specifies, and no one can access that sensitive data · Since they're bundled into the executable, you can (and should) read the library code to ensure that there is no malicious code in them. That doesn't mean they are safe - still got bugs to worry about - but it's far better than having users install packages directly from pip.
🌐
Reddit
reddit.com › r/learnpython › making sure python packages are safe
r/learnpython on Reddit: Making Sure Python Packages are Safe
May 23, 2020 -

Hi,

I've been learning Python pretty well over the past few months, and I feel like I know enough now to know that I know nothing :D I've been looking around Github and PyPI for some cool packages, and it makes me raise the question:

How do we know if a given package is secure and doesn't contain any sort of malware? I mean, besides going through and inspecting every line of code by hand.

Thanks in advance.

Also, this is my first question on Reddit, so forgive me if it's a stupid question :D

🌐
Reddit
reddit.com › r/webdev › how to convince it department that python is relatively safe to use on work computer?
r/webdev on Reddit: How to convince IT Department that Python is relatively safe to use on work computer?
April 25, 2020 - PwC, a global auditing firm, uses Python. If it's safe for the auditors, it's safe for you. Someone else mentioned that it's probably because someone is loyal to Microsoft, and this rings true to me.
🌐
Reddit
reddit.com › r/learnpython › how do you insure a python library is safe/legit?
r/learnpython on Reddit: How do you insure a Python Library is safe/legit?
July 14, 2020 -

Since a Python Library is essentially a chunk of code written from someone else. How do we know it's "safe"/"legit"?

Are there laws concerning this? Or do we have to test this on our own as a developer? Is it even "testable"?

Find elsewhere
🌐
Reddit
reddit.com › r/dataanalysis › why is python a security risk?
r/dataanalysis on Reddit: Why is python a security risk?
May 6, 2023 -

To keep it short, I monitor the performance of the tech products that is deployed around the country for my company. I got tired of using sheets and thought about creating a custom dashboard through python(local app first, then add it to our main Backoffice for everyone to see). Mid way through, I read a comment under a similar project saying that python has security risks but didn’t specify how or why. This has me concerned and makes me want to throw away the project since this will deal with very sensitive data. Is this true? If so, how can I work around this security risk?

Other option is my company is debating on getting Looker premium which would be easier and less of a headache but I’m an intern and I feel like this would not be effective experience to put on my resume. Thoughts?

🌐
Reddit
reddit.com › r/learnpython › how safe are pypi packages?
r/learnpython on Reddit: How safe are PyPi packages?
February 23, 2024 -

New to Python and really enjoying learning the language, probably the most enjoyable human readable language.

Are the packages in the PyPi packages always safe?

For example when installing packages from Debian they are signed etc. they might not work but are what they say they are. On a scale of ‘always check the code’ to ‘yolo it’ll be fine’ would you rate PyPi?

🌐
Reddit
reddit.com › r/learnpython › how safe it is to install a python project from github?
r/learnpython on Reddit: How safe it is to install a python project from GitHub?
July 8, 2022 -

I am considering installing a project that I found on Github:

https://github.com/stevedsun/notion-graph-view

(it is a really small project for the number of lines of code that it has)

The project has 133 stars

It's about creating a graph view from the content of the app Notion using its API to pass the information that the "graph app" needs/

But how safe is that? does the information that the "graph app" takes, stays on my PC?

Top answer
1 of 13
90
Generally-speaking, a public repository doesn’t mean there isn’t some function or feature that exposes you in some way. If you’re ever unsure, don’t use it. That said, it generally also means that you can explore the code and its requirements yourself, to ensure that you’re comfortable with what’s going on. Watch for things like requests to unfamiliar servers, access granted for things you don’t expect, or third-party libraries that you’ve never heard of. If it’s worth your time coding something, it’s worth the time reading the various docs and files to make sure your work is secure and safe!
2 of 13
39
So here’s the thing: GitHub is only a repository. The repo you’ve linked is ‘open’ for all to see. Hence “open source.” This doesn’t mean that it’s 100% safe, just that you can read the code. But see, that’s the idea in open source code. You take full responsibility in reading and understanding what the code does. There’s a lot of assumptions in the community that open-source means safe. It does not. It only means “caveat emptor” (buyer beware). Do yourself a favor and do some research to form an opinion based on what what you can understand. That said, while I do not understand the code fully, I can see that it’s asking to code a token directly. This is common, but bear in mind that there are better ways to handle this that are more advanced and complex. More complicated than I can write about while replying on my phone to you.
🌐
Reddit
reddit.com › r/learnpython › will downloading python mess up my os
r/learnpython on Reddit: Will downloading python mess up my os
September 19, 2024 -

Hey everyone so I brought a book teaching to programme in python for absolute beginners and it says you have to download python 3 but also warns that windows os systems can get glitchy and confused by it. I have windows 11 and just got the computer a few months ago so was wondering if it was safe to download without messing my computer up? I'm totally new to programming so sorry if this is a stupid question

🌐
Reddit
reddit.com › r/learnpython › python, pip, and it security
r/learnpython on Reddit: Python, pip, and IT security
May 7, 2023 -

A big issue I've heard of about pip is that it's insecure. Packages have been found to be malware, often using spelling errors as an avenue of attack.

If a company is concerned about security, then what is to be done? Are there more secure python installations available?

Python is often used by engineers & scientists to "Automate the Boring Stuff". Fine and dandy, but we won't be able to use Python if it's a security risk.

Top answer
1 of 2
21
In practice, this isn't nearly as big of a problem as it might initially seem. At least not in my opinion. pip isn't insecure, it's just a tool that accesses PyPI (Python Package Index) and downloads stuff from there. You can tell pip to use an alternative package repository - at a previous job all packages were installed from a company controlled mirror built with Artifactory. PyPI has some malicious packages, yes, but the problem is shared with NPM, crates.io (Cargo), and many others. And while spelling errors causing malicious packages taking over sounds scary, we need to remember that project dependencies don't change often. As long as you write the name right the first time, it's not going to suddenly change on its own. The only attack vector that may actually hurt a careful developer is if someone manages to hijack an existing package and pushes a change that makes it malicious, but these are rare occurrences as it requires the bad actor to gain access to the package owner's PyPI account. Most package maintainers (including myself) use password managers with long passwords for this reason. And the way you guard against this is by not using the bleeding edge unless necessary (but since the risks are small in the first place I wouldn't worry unless you were handling state secrets). TL;DR, don't worry too much. If you want to, you can always host your own Artifactory instance.
2 of 2
13
You can have a local mirror/server that contains only packages you've manually checked and approved, and block the global pip server.
🌐
Quora
quora.com › Is-Python-safe-for-my-computer
Is Python safe for my computer? - Quora
Answer (1 of 6): Considering Python is in regular use across tens of thousands of computer systems across the world; everything from desktop machines, to internet servers, to small devices on the Internet of Things. There is no reason to suspect that Python is any less safe than any other softwa...