We are aware of this, but it's not considered a bug.
The problem is, for external image links, which are the only available image types built into Flarum, we can't know the height of the image without fetching it server-side when the post is saved. That's something an extension could implement. Even if we wanted to make this feature standard, there isn't any good place to put the code, since both the bbcode and markdown extensions add an image tag. This would be best as a separate extension in any case.
Extensions that implement image upload should add those attributes to every images. I'm not sure whether FoF Upload has this feature implemented though. The image preview template in FoF Upload probably isn't impacted since its height is fixed with CSS. The markdown template definitely doesn't have it.