Opening a port using portforwarding opens the port 'forever' and there are loads of bots scanning for open port all the time.
You can argue that upnp is safer because it stops forwarding when not needed. And poopooty modem/routers are poopoo anyways.. So dont use them in the first place
As with many things in life, security is all about relative risk and tradeoffs. And unfortunately there's no such thing as decision-making with perfect information.
So naturally if a router was available that I knew wouldn't have security issues in the future, that fit within my budget, I would buy it. But how does one go about evaluating that? If you look at track records, there are certainly companies that have
fewer issues, and have
better policies around ongoing maintenance updates. But no companies have perfect records, and policies do change over time - past performance is no guarantee of future results and all that.
Thus one has to assume that security issues will crop up, with unpredictable nature and timing, which may or may not get patches. In that light, UPnP is a much more complex system than a static port forward - it has a larger attack surface, and less deterministic behavior. Moreover, UPnP has a more severe failure mode than static port forwarding, as it can open any port to connect to any device on your network. Furthermore, even if working as designed, UPnP exacerbates the severity of unrelated security problems, because any malicious program (say your phone gets a malicious app, for instance) can start opening ports to try and take advantage of additional vulnerabilities.
In contrast, static port forwarding is permanent, but should only ever give access to either the ED client, or to the code in the Windows network stack that refuses connections to inactive ports. You need to get into the router's management interface to change the forwarding settings. Since flaws in the ED client or the router's admin login system would affect either setup, the tradeoff is between trusting a small piece of code in the Windows network stack that Microsoft knows to be security-critical and is able to patch every Tuesday, or accepting the whole UPnP system and the very infrequent update cadence of my router vendor.