Did using the /give command to get items with attributes change in 1.17.1?

Firstly, that's not /attribute, that's /give, you're using attribute modifiers. The command should work, or at the very least not say the item name is unknown - it sounds like you've got a plugin here that's using the old /give syntax. What happens if you use /minecraft:give @p ... instead?