Below we see from the Greek Lexicon that the word cosmos means the inhabitants of the world, the human race as a whole and all of its ungodly multitude as a whole
Thayers
6. "
the ungodly multitude; the whole mass of men alienated from God, and therefore hostile to the cause of Christ" (cf. Winer's Grammar, 26):
John 7:7;
John 14:27 (); ;
1 Corinthians 1:21;
1 Corinthians 6:2;
1 Corinthians 11:32;
2 Corinthians 7:10;
James 1:27;
1 Peter 5:9;
2 Peter 1:4;
2 Peter 2:20;
1 John 3:1, 13; 1 John 4:5; 1 John 5:19; of the aggregate of ungodly and wicked men in O. T. times,
Hebrews 11:38; in Noah's time, ibid. 7; with οὗτος added,
Ephesians 2:2 (on which see αἰών, 3); εἶναι ἐκ τοῦ κόσμου and ἐκ τοῦ κόσμου τούτου (see εἰμί, V. 3rd.),
John 8:23;
John 15:19;
John 17:14, 16;
1 John 4:5;λαλεῖν ἐκ τοῦ κόσμου, to speak in accordance with the world's character and mode of thinking
, 1 John 4:5; ὁ ἄρχων τοῦ κόσμου τούτου, i. e. the devil,
John 12:31;
John 14:30;
John 16:11; ὁ ἐν τῷ κόσμῳ he that is operative in the world (also of the devil
), 1 John 4:4; τό πνεῦμα τοῦ κόσμου
1 John 2:2-He is the atoning sacrifice for our sins, and not only for ours but also for the sins of
the whole world.
1 John 2:15-17-Do not love the world or anything in
the world. If anyone loves
the world, love for the Father is not in them.
16 For everything in
the world—the lust of the flesh, the lust of the eyes, and the pride of life—comes not from the Father but from
the world.
17 The world and its desires pass away, but whoever does the will of God lives forever.
1 John 4:3-6- but every spirit that does not acknowledge Jesus is not from God. This is the spirit of the antichrist, which you have heard is coming and even now is already in
the world.
4 You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in
the world. 5 They are from
the world and therefore speak from the viewpoint of
the world, and
the world listens to them.
6 We are from God, and whoever knows God listens to us; but whoever is not from God does not listen to us. This is how we recognize the Spirit of truth and the spirit of falsehood.
1 John 4:14- And we have seen and testify that the Father has sent his Son to be the Savior of
the world
1 John 5:19- We know that we are from God, and
the whole world lies in the power of the evil one.
We see above that
the whole world lies under the evil one and its that same identical
whole world in
1 John 2:2 that Jesus made PROPITIATION for which is clear from the CONTEXT in 1 John.
Now its very clear from the Lexicon definition and in 1 John that the cosmos/world does not mean Gods elect (that is Calvinism) not what John means in his epistle. It clearly means everyone not exceptions in this world, all of its inhabitants who make up the ungodly multitude. It is clearly all inclusive of everyone, all, the entire world that lies under the evil one in opposition to God from the context of 1 John.
hope this helps !!!