The coffee will not taste good, it's been standing around for way too long. If you tried to brew it, it would taste like cardboard, wood and maybe ash. Roasted coffee tastes best a few days and up to a few weeks after roasting, then the taste starts degrading.
There might actually be some mold and bacteria in those coffee bags if they haven't been vacuum sealed.
If it's green coffee and you have a roaster go ahead and roast them. They will probably still taste cardboard-y but with temperatures of above 200°C during roasting you won't have to worry about bacteria. If it's roasted coffee, I'd just throw it away. If you're really emotionally attached to it, you might try to brew it once and taste a little. The chances of you dying or having severe reactions to it is fairly low if you don't drink it in large quantities.