A lot of SEO spammers buy old but popular Wordpress plugins to inject hidden backlinks to their websites, so it's entirely possible
Would it be feasible for an SEO spammer to covertly include such backlinks in an npm package update?
Sucks that despite this being a 20+ year old problem, Google hasn't been able to fix it.