Scenario: An end-user (untrusted) provides a string such as, "Hello, {name}!". On a server, I want to do string substitution on that user-provided string in the form of, my_string.format(name="Homer"). There are a great many things you can do with string formatting in Python, so I'm wondering whether it is a security concern to run a format() method on an untrusted string. Is it possible to provide a string value that, when Python's string substitution is used, will alter data outside of the string content itself?