Two distinct uses. (1) Literal: 'have an injury' —
身上有伤,
腿上有伤. (2) Fixed-expression 'be detrimental to':
有伤风化 (offend public morals),
有伤大雅 (in poor taste),
有伤和气 (damage the harmony / hurt the relationship). The figurative pattern is
有伤 + abstract noun.